dst: Get *d*aylight *s*avings *t*ime indicator of a date-time

Description Usage Arguments Details Value Examples

View source: R/accessors-dst.r

Description

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

Usage

1
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.

Examples

1
2
x <- ymd("2012-03-26")
dst(x)

Example output

Attaching package: 'lubridate'

The following object is masked from 'package:base':

    date

[1] FALSE

lubridate documentation built on Feb. 26, 2021, 5:09 p.m.