Skip to content

convert numbers into dates and time

2 messages · mpostje, Uwe Ligges

#
Hi

I've been trying to convert numbers from an online temperature database
into dates and time that R recognizes. the problem is that the database has
put a T
between the numbers and R will not accept any conversions. 

this is the format that it's in now
1981-01-02T08:00

can anyone help?
cheers!

--
View this message in context: http://r.789695.n4.nabble.com/convert-numbers-into-dates-and-time-tp4602708.html
Sent from the R help mailing list archive at Nabble.com.
#
On 02.05.2012 11:19, mpostje wrote:
strptime("1981-01-02T08:00", format="%Y-%m-%dT%H:%M")

seems to work for me.

Uwe Ligges