timeMaster: timeMaster timeMaster allows to: transform time from...

View source: R/generic_utilities.R

timeMasterR Documentation

timeMaster timeMaster allows to: transform time from different formats to different formats. add amounts of time to baseTime expressed in different formats. This is verified. And useful. For reasons. :-D

Description

timeMaster timeMaster allows to: transform time from different formats to different formats. add amounts of time to baseTime expressed in different formats. This is verified. And useful. For reasons. :-D

Usage

timeMaster(
  baseTime,
  out = c("auto", "hour", "min", "sec"),
  add = 0,
  baseSep = "[:,;,\\,',\",\\-]",
  digits = c("auto")
)

Arguments

baseTime

numeric representig seconds, or a string in the h:m:s or m:s format

out

the output format "auto", "hour" for hh:mm:ss, "min" for "mm:ss"

add

a time to be added (or subtracted if negative) from basetime. In any format accepted by timeMaster

baseSep

the separator dividing hh mm ss

digits

the number of digits of the fractional part of seconds


kleinbub/rIP documentation built on Dec. 21, 2024, 9:15 a.m.