Description Usage Arguments Details Value Examples
View source: R/textToEuropeBerlinPosix.R
This function tries to overcome some problems that may arise when using
as.POSIXct. It can handle timestamps that originate from a 
clock that switches between standard time and summer time as well as those 
originating from a clock that stays in standard time over the whole year.  
See vignette("text_to_posixct", package = "kwb.datetime") for details.
It also tries to find a convenient format description string.
1  | 
x | 
 vector of text (i.e. character) timestamps  | 
format | 
 format string describing the format of a timestamp, such as
"
placeholders. If not given or   | 
switches | 
 if   | 
dbg | 
 if   | 
... | 
 further arguments passed to   | 
When reading timestamps that observe Daylight Saving, it is required  that 
the timestamps in x are ordered by time, which should be the case if 
they  were recorded by a measuring device.
vector of POSIXct objects
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21  | # Test the functions with the following "switch" days
kwb.datetime::date_range_CEST(2019)
t1 <- textToEuropeBerlinPosix(c("31.03.2019 01:00", "31.03.2019 03:00"))
t2 <- textToEuropeBerlinPosix(c("31.03.2019 01:00", "31.03.2019 02:00"), 
                              switches = FALSE)
identical(t1, t2)
                              
t3 <- textToEuropeBerlinPosix(c("27.10.2019 02:00", "27.10.2019 02:00"))
t4 <- textToEuropeBerlinPosix(c("27.10.2019 01:00", "27.10.2019 02:00"), 
                              switches = FALSE)
identical(t3, t4)
kwb.datetime::textToEuropeBerlinPosix(c(
  "2017-10-29 01:30:00", # 1: CEST
  "2017-10-29 02:00:00", # 2: CEST
  "2017-10-29 02:30:00", # 3: CEST
  "2017-10-29 02:00:00", # 4: CET
  "2017-10-29 02:30:00", # 5: CET
  "2017-10-29 03:00:00"  # 6: CET
))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.