The current time

now(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

the current date and time as a POSIXct object

See also

here()

Examples

now()
#> [1] "2017-05-26 10:13:07 PDT"
now("GMT")
#> [1] "2017-05-26 17:13:07 GMT"
now("")
#> [1] "2017-05-26 10:13:07 PDT"
now() == now() # would be TRUE if computer processed both at the same instant
#> [1] FALSE
now() < now() # TRUE
#> [1] TRUE
now() > now() # FALSE
#> [1] FALSE