R/timesAroundClockChange.R
timesAroundClockChange.Rd
Sequence of Times Around Clock Change in Central Europe
timesAroundClockChange( year = 2000, normalToSummer = TRUE, step_s = 1800, length.out = 5 )
year | year for which to demonstrate the switch between Central European Time (CET) and Central European Summer Time (CEST) |
---|---|
normalToSummer |
|
step_s | time step in seconds |
length.out | number of time objects in returned vector |
vector of POSIXct objects with length length.out
timesAroundClockChange(2019, normalToSummer = TRUE)#> [1] "2019-03-31 01:00:00 CET" "2019-03-31 01:30:00 CET" #> [3] "2019-03-31 03:00:00 CEST" "2019-03-31 03:30:00 CEST" #> [5] "2019-03-31 04:00:00 CEST"timesAroundClockChange(2019, normalToSummer = FALSE)#> [1] "2019-10-27 02:00:00 CEST" "2019-10-27 02:30:00 CEST" #> [3] "2019-10-27 02:00:00 CET" "2019-10-27 02:30:00 CET" #> [5] "2019-10-27 03:00:00 CET"timesAroundClockChange(2019, TRUE, step_s = 1, length.out = 3)#> [1] "2019-03-31 01:59:59 CET" "2019-03-31 03:00:00 CEST" #> [3] "2019-03-31 03:00:01 CEST"timesAroundClockChange(2019, FALSE, step_s = 1, length.out = 3)#> [1] "2019-10-27 02:59:59 CEST" "2019-10-27 02:00:00 CET" #> [3] "2019-10-27 02:00:01 CET"