Learn R Programming

oce (version 1.8-3)

secondsToCtime: Express Time Interval as Colon-Separated String

Description

Convert a time interval to a colon-separated string

Usage

secondsToCtime(sec)

Value

A string with a colon-separated time interval.

Arguments

sec

length of time interval in seconds.

Author

Dan Kelley

See Also

See ctimeToSeconds(), the inverse of this.

Other things related to time: ctimeToSeconds(), julianCenturyAnomaly(), julianDay(), numberAsHMS(), numberAsPOSIXct(), unabbreviateYear()

Examples

Run this code
library(oce)
cat("   10 s = ", secondsToCtime(10), "\n", sep = "")
cat("   61 s = ", secondsToCtime(61), "\n", sep = "")
cat("86400 s = ", secondsToCtime(86400), "\n", sep = "")

Run the code above in your browser using DataLab