Learn R Programming

qdap (version 1.3.5)

sec2hms: Convert Seconds to h:m:s

Description

Converts a vector of seconds to h:m:s.

Usage

sec2hms(x)

Arguments

x
A vector of times in seconds.

Value

  • Returns a vector of times in h:m:s format. Generally, this function is for internal use.

See Also

times, hms2sec

Examples

Run this code
sec2hms(c(256, 3456, 56565))

Run the code above in your browser using DataLab