utc_offset_Berlin_day: UTC Offsets of Days in Time Zone Europe/Berlin

Description Usage Arguments Value See Also Examples

View source: R/utc_offset_berlin.R

Description

UTC Offsets of Days in Time Zone Europe/Berlin

Usage

1

Arguments

x

vector of character representing date strings in the format yyyy-mm-dd

Value

vector of integers 1 or 2, depending on whether all timestamps of the days at corresponding positions in x are in Central European Time (CET) or in Central European Summer Time (CEST), respectively. For days at which the time is adjusted from CET to CEST or vice versa, NA is returned.

See Also

utcOffsetBerlinTime

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
kwb.datetime:::utc_offset_Berlin_day("2017-11-04") #> 1 -> CET

# The offset is not unique at the days of clock change CEST -> CET
kwb.datetime:::utc_offset_Berlin_day("2017-10-28") #> 2 -> CEST
kwb.datetime:::utc_offset_Berlin_day("2017-10-29") #> NA -> offset not unique!
kwb.datetime:::utc_offset_Berlin_day("2017-10-30") #> 1 -> CET

# The offset is not unique at the days of clock change CET -> CEST
kwb.datetime:::utc_offset_Berlin_day("2017-03-25") #> 1 -> CET
kwb.datetime:::utc_offset_Berlin_day("2017-03-26") #> NA -> offset not unique!
kwb.datetime:::utc_offset_Berlin_day("2017-03-27") #> 2 -> CEST

KWB-R/kwb.datetime documentation built on July 9, 2021, 10:28 p.m.