Skip to content

Commit 903fce3

Browse files
author
maechler
committed
get rid of internal vs system tzone diff
git-svn-id: https://svn.r-project.org/R/trunk@87359 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 4222b9a commit 903fce3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/datetime.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ as.POSIXct("2040-07-01 12:00")
2222

2323
Sys.setenv(TZ = "EST5EDT") # also pretty much portable.
2424
## However, tzdata 2024b changed this from EST to LMT (and by 238s)
25+
## IGNORE_RDIFF_BEGIN
2526
(z <- as.POSIXct("1848-01-01 12:00"))
2627
c(unclass(z))
28+
## IGNORE_RDIFF_END
2729
## see comment above
2830
as.POSIXct("2040-01-01 12:00")
2931
as.POSIXct("2040-07-01 12:00")

tests/datetime.Rout.save

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
R Under development (unstable) (2024-09-12 r87140) -- "Unsuffered Consequences"
2+
R Under development (unstable) (2024-11-21 r87357) -- "Unsuffered Consequences"
33
Copyright (C) 2024 The R Foundation for Statistical Computing
44
Platform: aarch64-apple-darwin23.6.0
55

@@ -49,10 +49,12 @@ Type 'q()' to quit R.
4949
>
5050
> Sys.setenv(TZ = "EST5EDT") # also pretty much portable.
5151
> ## However, tzdata 2024b changed this from EST to LMT (and by 238s)
52+
> ## IGNORE_RDIFF_BEGIN
5253
> (z <- as.POSIXct("1848-01-01 12:00"))
5354
[1] "1848-01-01 12:00:00 LMT"
5455
> c(unclass(z))
5556
[1] -3849923038
57+
> ## IGNORE_RDIFF_END
5658
> ## see comment above
5759
> as.POSIXct("2040-01-01 12:00")
5860
[1] "2040-01-01 12:00:00 EST"

0 commit comments

Comments
 (0)