convert_hhmmss: Convert hh:mm:ss to hours

Description Usage Arguments Examples

Description

Convert hh:mm:ss to hours

Usage

1
convert_hhmmss(hhmmss, forward = TRUE)

Arguments

hhmmss

Either a string with "hh:mm:ss" or a decimal number of hours

forward

Default is TRUE, thus performs the hh:mm:ss conversion to decimal. FALSE would do the opposite conversion.

Examples

1
2
3
convert_hhmmss("07:56:08") / convert_hhmmss("09:46:22")
0.8040201 * convert_hhmmss("28:23:41")
convert_hhmmss(23.09548, forward=FALSE)

palautatan/biohazardLibrary documentation built on May 29, 2019, 7:35 a.m.