hms_to_s: Convert an HH:MM:SS formatted string to seconds.

Description Usage Arguments Value Examples

Description

hms_to_s takes a character string formatted in HH:MM:SS and returns the equivalent number of seconds.

Usage

1

Arguments

x

A character string of the form HH:MM:SS.

Value

The number of seconds (numeric) represented by HH:MM:SS.

Examples

1
2
3
hms_to_s(10:10:10)
hms_to_s(00:10:10)
hms_to_s(00:00:10)

bochocki/slackrsheets documentation built on May 8, 2019, 9:46 a.m.