date-today | R Documentation |
date_today()
returns the current date in the specified zone
as a Date.
date_now()
returns the current date-time in the specified zone
as a
POSIXct.
date_today(zone)
date_now(zone)
zone |
A time zone to get the current time for. |
clock assumes that Date is a naive type, like naive-time. This means that
date_today()
first looks up the current date-time in the specified zone
,
then converts that to a Date, retaining the printed time while dropping any
information about that time zone.
date_today()
a single Date.
date_now()
a single POSIXct.
# Current date in the local time zone
date_today("")
# Current date in a specified time zone
date_today("Europe/London")
# Current date-time in that same time zone
date_now("Europe/London")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.