Hello everyone,

I am wondering if there is any routine in R which can convert time given in
'seconds' unit to the 12 hour time format. For example, suppose the data
set looks like

x=c(36885,84000,20)  #x in seconds

I want to get the output as

[1] " 11:14:45 AM"
[2] " 11:20:00 PM"
[3] "12:20:00 AM"

Does anyone have any idea? Thanks in advance.


Cassie

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to