now

0th

Percentile

The current day and time

The current day and time

Keywords
utilities, chron
Usage
now(tzone = "")

today(tzone = "")

Arguments
tzone

a character vector specifying which time zone you would like the current time in. tzone defaults to your computer's system timezone. You can retrieve the current time in the Universal Coordinated Time (UTC) with now("UTC").

Value

now - the current datetime as a POSIXct object

Aliases
  • now
  • today
Examples
# NOT RUN {
now()
now("GMT")
now("")
now() == now() # would be TRUE if computer processed both at the same instant
now() < now() # TRUE
now() > now() # FALSE
today()
today("GMT")
today() == today("GMT") # not always true
today() < as.Date("2999-01-01") # TRUE  (so far)
# }
Documentation reproduced from package lubridate, version 1.7.9.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.