Re: [R] Difference between times

2014-04-20 Thread Prof Brian Ripley
On 18/04/2014 21:46, David Winsemius wrote: On Apr 18, 2014, at 12:59 PM, Prof Brian Ripley wrote: On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've misspelled CET (not CEST) Neither CET nor CEST are portable time-zone names. We have not been given the 'at a

Re: [R] Difference between times

2014-04-20 Thread Prof Brian Ripley
On 20/04/2014 08:50, Prof Brian Ripley wrote: On 18/04/2014 21:46, David Winsemius wrote: On Apr 18, 2014, at 12:59 PM, Prof Brian Ripley wrote: On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've misspelled CET (not CEST) Neither CET nor CEST are portable

Re: [R] Difference between times

2014-04-20 Thread David Winsemius
On Apr 20, 2014, at 2:16 AM, Prof Brian Ripley wrote: On 20/04/2014 08:50, Prof Brian Ripley wrote: On 18/04/2014 21:46, David Winsemius wrote: On Apr 18, 2014, at 12:59 PM, Prof Brian Ripley wrote: On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've

Re: [R] Difference between times

2014-04-19 Thread Nicola Sturaro Sommacal
Thank you for your reply. I discovered the OlsonNames() function to get the time-zone names in my system. Rui get a warning message when using a not recognized tz. On my system this doesn't succed. I solved as follow: dt1 = as.POSIXct(2014-04-18 09.00, format=%Y-%m-%d %H.%M, tz = Europe/Rome)

Re: [R] Difference between times

2014-04-19 Thread Nicola Sturaro Sommacal
I forgot: sysname release Linux 3.5.0-48-generic version #72-Ubuntu SMP Mon Mar 10 23:18:29 UTC 2014 2014-04-19 14:03 GMT+02:00 Nicola Sturaro Sommacal

[R] Difference between times

2014-04-18 Thread Nicola Sturaro Sommacal
Hi. I am new to POSIX and I'd like to understand the reason of this difference. dt1 = as.POSIXct(2014-03-29 09.00, format=%Y-%m-%d %H.%M) dt2 = as.POSIXct(2014-03-30 09.00, format=%Y-%m-%d %H.%M) dt2-dt1 dt1[1] 2014-03-29 09:00:00 CET dt2[1] 2014-03-30 09:00:00 CEST dt2-dt1 Time difference of

Re: [R] Difference between times

2014-04-18 Thread Rui Barradas
Hello, The reason why is that you've misspelled CET (not CEST) dt1 = as.POSIXct(2014-04-18 09.00, format=%Y-%m-%d %H.%M, tz = CEST) Warning messages: 1: In strptime(x, format, tz = tz) : unknown timezone 'CEST' 2: In as.POSIXct.POSIXlt(as.POSIXlt(x, tz, ...), tz, ...) : unknown timezone

Re: [R] Difference between times

2014-04-18 Thread Prof Brian Ripley
On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've misspelled CET (not CEST) Neither CET nor CEST are portable time-zone names. We have not been given the 'at a minimum' information required by the posting guide, so please read ?Sys.timezone on your system.

Re: [R] Difference between times

2014-04-18 Thread David Winsemius
On Apr 18, 2014, at 12:59 PM, Prof Brian Ripley wrote: On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've misspelled CET (not CEST) Neither CET nor CEST are portable time-zone names. We have not been given the 'at a minimum' information required by the