Re: [R] Milliseconds and Time object

2010-10-22 Thread statquant2
Yes it was what I was after ... sorry should have looked again. Thanks -- View this message in context: http://r.789695.n4.nabble.com/Milliseconds-and-Time-object-tp3001570p3006817.html Sent from the R help mailing list archive at Nabble.com. __ R-hel

Re: [R] Milliseconds and Time object

2010-10-19 Thread peter dalgaard
On Oct 19, 2010, at 12:12 , jim holtman wrote: > Is this what you are after: > >> date <- '2010-10-19' >> as.POSIXct(date) > [1] "2010-10-19 EDT" >> milli <- 360 # one hour in milliseconds >> as.POSIXct(date) + milli / 1000 > [1] "2010-10-19 01:00:00 EDT" >> > Beware timezone and DST iss

Re: [R] Milliseconds and Time object

2010-10-19 Thread jim holtman
Is this what you are after: > date <- '2010-10-19' > as.POSIXct(date) [1] "2010-10-19 EDT" > milli <- 360 # one hour in milliseconds > as.POSIXct(date) + milli / 1000 [1] "2010-10-19 01:00:00 EDT" > On Tue, Oct 19, 2010 at 3:24 AM, statquant2 wrote: > > Hello all, > my question for today i

[R] Milliseconds and Time object

2010-10-19 Thread statquant2
Hello all, my question for today is the following : I have 1. a date (in a string but straightforward to convert to any format) 2. the time as the number of milliseconds elapsed since hour 00:00:00.000 of this date. My question is : 1. Is there a in built function that can give me the date+time