minuteTime: Convert numeric time to HH:MM

View source: R/helper.R

minuteTimeR Documentation

Convert numeric time to HH:MM

Description

Convert numeric time to HH:MM

Usage

minuteTime(x, format = c("h", "m", "s"), seconds = TRUE)

Arguments

x

Single string or a vector of strings containing hours:minutes or hours:minutes:seconds.

format

the format of x, one of "h" (hours), "m", (minutes) or "s" (seconds).

seconds

Logical; If TRUE, output is returned in HH:MM:SS format.

Value

a string or vector of strings corresponding to the character hour equivalent of the numeric input.


actel documentation built on Oct. 19, 2023, 9:08 a.m.