Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 402 Bytes

hms.md

File metadata and controls

23 lines (20 loc) · 402 Bytes
library(hms)

hms(56, 34, 12)
#> 12:34:56
parse_hm("12:34")
#> 12:34:00
as_hms(parse_hms("12:34:58") + 1:3)
#> 12:34:59
#> 12:35:00
#> 12:35:01
hms(1:3 * 1e-6)
#> 00:00:00.000001
#> 00:00:00.000002
#> 00:00:00.000003
as_hms(Sys.time() - as.POSIXct(Sys.Date()))
#> 09:05:06.343932

hms(NA)
#> NA

Created on 2020-03-03 by the reprex package (v0.3.0)