s_to_hms: Convert some number of seconds into an HH:MM:SS format.

Description Usage Arguments Value Examples

Description

s_to_hms takes a numeric input s (or an input that can be coerced to numeric) that corresponds to some number of seconds, and returns a string that is formatted to the appropriate HH:MM:SS.

Usage

1

Arguments

x

A single number, in seconds.

Value

a character string of the form HH:MM:SS.

Examples

1
2
3
s_to_hms(2.5)
s_to_hms(120)
s_to_hms(4242)

bochocki/slackrsheets documentation built on May 8, 2019, 9:46 a.m.