[R] POSIX system oddities

Peter Langfelder peter@|@ng|e|der @end|ng |rom gm@||@com
Mon Mar 30 02:12:07 CEST 2020


The time has changed from "standard" (EST) to "Daylight saving" (EDT) which
shaves off 1 hour.

Peter

On Sun, Mar 29, 2020 at 5:03 PM Sebastien Bihorel via R-help <
r-help using r-project.org> wrote:

> Hi,
>
> Why is there less number of seconds on 03/10/2019 in the internal POSIX
> system? The difference between the previous or the next day eems to be
> exactly 1 hour. I could not find anything in the manuals on CRAN.
>
> > dates <- as.POSIXct(sprintf('03/%s/2019',9:12), format = '%m/%d/%Y')
> > dates
> [1] "2019-03-09 EST" "2019-03-10 EST" "2019-03-11 EDT" "2019-03-12 EDT"
> > diff(as.numeric(dates[1:2]))
> [1] 86400
> > diff(as.numeric(dates[2:3]))
> [1] 82800
> > diff(as.numeric(dates[3:4]))
> [1] 86400
>
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list