secondsToCtime | R Documentation |
Convert a time interval to a colon-separated string
secondsToCtime(sec)
sec |
length of time interval in seconds. |
A string with a colon-separated time interval.
Dan Kelley
See ctimeToSeconds()
, the inverse of this.
Other things related to time:
ctimeToSeconds()
,
julianCenturyAnomaly()
,
julianDay()
,
numberAsHMS()
,
numberAsPOSIXct()
,
unabbreviateYear()
library(oce)
cat(" 10 s = ", secondsToCtime(10), "\n", sep = "")
cat(" 61 s = ", secondsToCtime(61), "\n", sep = "")
cat("86400 s = ", secondsToCtime(86400), "\n", sep = "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.