Learn R Programming

oce (version 0.1-82)

seconds.to.ctime: Convert a time interval to a colon-separated string

Description

Convert a time interval to a colon-separated string

Usage

seconds.to.ctime(sec)

Arguments

sec
length of time interval in seconds.

Value

  • A string with a colon-separated time interval.

Details

Strings are

See Also

See ctime.to.seconds, the inverse of this.

Examples

Run this code
library(oce)
cat("10 s = ", seconds.to.ctime(10), "", sep="")
cat("61 s = ", seconds.to.ctime(61), "", sep="")
cat("86400 s = ", seconds.to.ctime(86400), "", sep="")

Run the code above in your browser using DataLab