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
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
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
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
4 matches
Mail list logo