fix_hms | R Documentation |
24:00:00
to 00:00:00
for hms
objectsfix_hms()
is a quick fix for hms
objects that have a
time of 24:00:00
. This function transforms the time to 00:00:00
for
consistency with the POSIXt
class.
fix_hms(x)
x |
A |
A hms
vector.
Other utility functions:
change_date()
,
extract_seconds()
,
flat_posixt_date()
,
get_last_week()
,
round_time()
hms::parse_hm("24:00") |> fix_hms()
#> 00:00:00 # Expected
hms::parse_hm(c("02:00", "24:00", "18:00")) |> fix_hms()
02:00:00 # Expected
00:00:00
18:00:00
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.