uses_dst | R Documentation |
Function to check if a datetime object potentially uses daylight
saving time. It is not the same as lubridate::dst()
, which will
determine if daylight saving time is set for the requested date.
uses_dst(x)
x |
A datetime object. |
Returns a logical
value indicating of the time zone
used by the datetime object potentially uses daylight saving time.
Pepijn de Vries
uses_dst(as.POSIXct("2020-03-29 02:00:00 CET", tz = "CET"))
uses_dst(as.POSIXct("2020-03-29 02:00:00 UTC", tz = "UTC"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.