Re: [R] time conversions

2015-02-18 Thread Troels Ring
Thanks a lot and thanks to Rui Troels Den 18-02-2015 kl. 20:14 skrev peter dalgaard: On 18 Feb 2015, at 18:45 , Troels Ring wrote: dear friends - sorry to ask another simple question - I have dates set up as this: dates #[1] 2003-01-21 01:08:00 To handle it I did as.POSIXlt(dates) "2003-01-

Re: [R] time conversions

2015-02-18 Thread Rui Barradas
Hello, Try as.POSIXlt(1043107680, origin = "1970-01-01", tz = "CET") Hope this helps, Rui Barradas Em 18-02-2015 17:45, Troels Ring escreveu: dear friends - sorry to ask another simple question - I have dates set up as this: dates #[1] 2003-01-21 01:08:00 To handle it I did as.POSIXlt(dat

Re: [R] time conversions

2015-02-18 Thread peter dalgaard
> On 18 Feb 2015, at 18:45 , Troels Ring wrote: > > dear friends - sorry to ask another simple question - > I have dates set up as this: > dates #[1] 2003-01-21 01:08:00 > > To handle it I did > as.POSIXlt(dates) "2003-01-21 01:08:00 CET" > > but noticed that during write.table it was appare

[R] time conversions

2015-02-18 Thread Troels Ring
dear friends - sorry to ask another simple question - I have dates set up as this: dates #[1] 2003-01-21 01:08:00 To handle it I did as.POSIXlt(dates) "2003-01-21 01:08:00 CET" but noticed that during write.table it was apparently better to take it further as.numeric(as.POSIXct(as.POSIXlt(da