[Rd] POSIX <> character comparison is locale dependent

Vitalie Spinu spinuvit at gmail.com
Fri Aug 19 11:39:31 CEST 2016


Hi Devs,

In my UTC+1 timezone the following code returns TRUE

     t <- as.POSIXct("1999-12-31 23:50:00", tz = "UTC")
     t > "2000-01-01"
     ## TRUE

For a person in US it would return FALSE.

The reason for this is that timezone of the "t" object is ignored in
base:::Ops.POSIXt.

Could this please be fixed? I am attaching a simple patch in case there is
interest.

Thanks,

 Vitalie



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-diff
Size: 804 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20160819/16c566e3/attachment.bin>


More information about the R-devel mailing list