decimalTime: Convert hh:mm:ss time to hh.hhh

View source: R/helper.R

decimalTimeR Documentation

Convert hh:mm:ss time to hh.hhh

Description

Convert hh:mm:ss time to hh.hhh

Usage

decimalTime(input, unit = c("h", "m", "s"))

Arguments

input

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

unit

the desired units of the output, one of "h" (hours), "m", (minutes) or "s" (seconds).

Value

A number or vector of numbers corresponding to the decimal hour equivalent of the character input.


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