Skip to content
Prev 284022 / 398502 Next

time conversion from second to Y M D H M S format

You are right something is not working correctly.  But you haven't shown what you did from beginning to end, so we don't know what that something might be.  Try this
[1] "2009-01-01 00:00:00 GMT" "2009-01-01 06:00:00 GMT"
[3] "2009-01-01 12:00:00 GMT" "2009-01-01 18:00:00 GMT"
[5] "2009-01-02 00:00:00 GMT" "2009-01-02 06:00:00 GMT"
[1] "2009 01 01 00 00 00" "2009 01 01 06 00 00" "2009 01 01 12 00 00"
[4] "2009 01 01 18 00 00" "2009 01 02 00 00 00" "2009 01 02 06 00 00"
Does that not do what you wanted?

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204