secs.fmt {tlocoh}R Documentation

Format a number of seconds as minutes, hours or days

Description

Returns a formated version of a time value

Usage

secs.fmt(secsVal, round.pos = 1)

Arguments

secsVal

a time value (in seconds)

round.pos

The number of decimal places in the formatted string

Value

a character string

Note

This function only works with a single value. To format a multiple time values stored in a vector, use sapply or lapply

Based on the value of secsVal, the formatted version will be converted to days, hours, minutes, or seconds


[Package tlocoh version 1.40.05 Index]