Rdocumentation
powered by
Learn R Programming
lubridate (version 0.2.6)
dst: Get Daylight Savings Time indicator of a date-time.
Description
Date-time must be a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, and fts objects.
Usage
dst(x)
Arguments
x
a date-time object
Value
Daylight savings time flag. Positive if in force, zero if not, negative if unknown.
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.
Examples
Run this code
x <- now()
dst(x)
Run the code above in your browser using
DataLab