dst

0th

Percentile

Get daylight savings time indicator of a date-time

Date-time must be a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, and fts objects.

Keywords
methods, utilities, chron
Usage
dst(x)
Arguments
x

a date-time object

Details

A date-time's daylight savings flag can not be set because it depends on the date-time's year, month, day, and hour values.

Value

A logical. TRUE if DST is in force, FALSE if not, NA if unknown.

Aliases
  • dst
Examples
# NOT RUN {
x <- ymd("2012-03-26")
dst(x)
# }
Documentation reproduced from package lubridate, version 1.7.4, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.