lubridate (version 1.1.0)

now: The current time

Description

The current time

Usage

now(tzone = "")

Arguments

tzone
a character vector specifying which time zone you would like the current time in. tzone defaults to the system time zone set on your computer.

Value

  • the current date and time as a POSIXct object

Examples

Run this code
now()
now("GMT")
now() == now() # would be true if computer processed both at the same instant
now() < now() # TRUE
now() > now() # FALSE

Run the code above in your browser using DataCamp Workspace