search for: d_utc

Displaying 1 result from an estimated 1 matches for "d_utc".

Did you mean: d_un
2013 Oct 04
2
Possible POSIXlt / wday glitch & bugs.r-project.org status
...You would expect the wday element to be invariant to the timezone of a date. That is, the same date/time instant of 5th October 2013 in both Australia/Sydney and UTC should be a Saturday (i.e. wday = 6). And indeed that is the case with 1 min past midnight on 5 October 2013: ``` library(lubridate) d_utc <- ymd_hms(20131005000001, tz='UTC') d_local <- ymd_hms(20131005000001, tz='Australia/Sydney') as.POSIXlt(x=d_utc, tz=tz(d_utc))$wday # 6 as.POSIXlt(x=d_local, tz=tz(d_local))$wday # 6 ``` But this isn't always the case. For example, ``` d_utc <- ymd_hms(2038100200000...