Learn R Programming

lubridate (version 1.7.0)

today: The current date

Description

The current date

Usage

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

Run this code
# NOT RUN {
today()
today("GMT")
today() == today("GMT") # not always true
today() < as.Date("2999-01-01") # TRUE  (so far)
# }

Run the code above in your browser using DataLab