The current date

today(tzone = "")

Arguments

tzone

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

Value

the current date as a Date object

Examples

today()
#> [1] "2017-05-26"
today("GMT")
#> [1] "2017-05-26"
today() == today("GMT") # not always true
#> [1] TRUE
today() < as.Date("2999-01-01") # TRUE (so far)
#> [1] TRUE