time_str_to_n_sec: Convert time from HH:MM:SS to the number of seconds

View source: R/time_str_to_n_sec.R

time_str_to_n_secR Documentation

Convert time from HH:MM:SS to the number of seconds

Description

This time format is used in a Peregrine log file

Usage

time_str_to_n_sec(str)

Arguments

str

the time string as text, for example "12:34:56"

See Also

use time_strs_to_n_secs for multiple strings

Examples

time_str <- "12:55:44"
# 12 * 60 * 60) + (55 * 60) + 44
time_str_to_n_sec(time_str)

richelbilderbeek/peregrine documentation built on Jan. 3, 2024, 7:42 p.m.