The R Project SVN R

Rev

Rev 75855 | Rev 78278 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 75855 Rev 75856
Line 12... Line 12...
12
c(unclass(z))
12
c(unclass(z))
13
 
13
 
14
Sys.setenv(TZ = "Europe/London")  # pretty much portable.
14
Sys.setenv(TZ = "Europe/London")  # pretty much portable.
15
(z <- as.POSIXct("1848-01-01 12:00"))
15
(z <- as.POSIXct("1848-01-01 12:00"))
16
c(unclass(z))
16
c(unclass(z))
17
## We don't know the operation of timezones next year let alone in 1940
17
## We don't know the operation of timezones next year let alone in 2040
18
## but these should at least round-trip
18
## but these should at least round-trip
19
## These got the wrong timezone on Linux with glibc 2.2[67]
19
## These got the wrong timezone on Linux with glibc 2.2[67]
20
as.POSIXct("2040-01-01 12:00")
20
as.POSIXct("2040-01-01 12:00")
21
as.POSIXct("2040-07-01 12:00")
21
as.POSIXct("2040-07-01 12:00")
22
 
22