Thanks Henrique.It worked!!! I appreciate your help.
Cassie
On Mon, Apr 9, 2012 at 8:06 PM, Henrique Dallazuanna wrote:
> Try this:
>
> Sys.setlocale(category = "LC_TIME", locale = "US")
> format(as.POSIXct('0001-01-01 00:00:00') + x, "%I:%M:%S %p")
>
>
> On Mon, Apr 9, 2012 at 9:38 PM, cass
Try this:
Sys.setlocale(category = "LC_TIME", locale = "US")
format(as.POSIXct('0001-01-01 00:00:00') + x, "%I:%M:%S %p")
On Mon, Apr 9, 2012 at 9:38 PM, cassie jones wrote:
>
> Hello everyone,
>
> I am wondering if there is any routine in R which can convert time given in
> 'seconds' unit to t
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
3 matches
Mail list logo