I am trying to create an array of date time objects using the strptime function. The first entry is in the form "1/1/1981 0:00" and U use; strptime(datetime, "%m/%d/%Y %H:%M") which gives "1981-01-01 EST". How do I alter this to give me "1981-01-01 0:00 EST"? Thanks in advance, Doug -- View this message in context: http://r.789695.n4.nabble.com/datetime-objects-tp3013417p3013417.html Sent from the R help mailing list archive at Nabble.com.
like this: format(strptime(datetime, "%m/%d/%Y %H:%M"), "%m/%d/%Y %H:%M %Z") remko -- View this message in context: http://r.789695.n4.nabble.com/datetime-objects-tp3013417p3013604.html Sent from the R help mailing list archive at Nabble.com.