Skip to content

Incorrect formatted output after subtracting non-integer seconds from POSIXt origin

3 messages · Daniel Murphy, Simon Urbanek

#
On Sep 3, 2010, at 7:56 PM, Daniel Murphy wrote:

            
If negative POSIX time is supposed to work then it's a bug in as.POSIXlt(). Now fixed in R-devel (and patched).

Cheers,
Simon


before:
List of 9
 $ sec  : num 0.8
 $ min  : int 0
 $ hour : int 0
 $ mday : int 1
 $ mon  : int 0
 $ year : int 70
 $ wday : int 4
 $ yday : int 0
 $ isdst: int 0
 - attr(*, "tzone")= chr "UTC"

R-devel:
List of 9
 $ sec  : num 59.8
 $ min  : int 59
 $ hour : int 23
 $ mday : int 31
 $ mon  : int 11
 $ year : int 69
 $ wday : int 3
 $ yday : int 364
 $ isdst: int 0
 - attr(*, "tzone")= chr "UTC"