Learn R Programming

durmod (version 1.1-4)

timestr: Prettyprint a time interval

Description

Converts a time in seconds to a short string e.g. "3m4s".

Usage

timestr(t)

Arguments

t

numeric. time in seconds.

Value

A character string is returned.

Examples

Run this code
# NOT RUN {
timestr(1.3)
timestr(73)
timestr(4684)
# }

Run the code above in your browser using DataLab