rgp (version 0.4-1)

formatSeconds: Format time and data values into human-readable character vectors

Description

These functions convert date and time values into human-readable character vectors. formatSeconds formats time values given as a numerical vector denoting seconds into human-readable character vectors, i.e. formatSeconds(70) results in the string "1 minute, 10 seconds".

Usage

formatSeconds(seconds, secondDecimals = 2)

Arguments

seconds
A numeric vector denoting seconds.
secondDecimals
The number of decimal places to show for seconds. Defaults to 2.

Value

A character vector containg a human-readable representation of the given date/time.