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

Description Usage Arguments Value

View source: R/time_utils.r

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

1
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.


rgp documentation built on May 30, 2017, 12:45 a.m.