parse_hms: Parsing hms values

Description Usage Arguments Details Examples

View source: R/parse.R

Description

These functions convert character vectors to objects of the hms class. NA values are supported.

Usage

1
2
3

Arguments

x

A character vector

Details

parse_hms() accepts values of the form "HH:MM:SS", with optional fractional seconds.

parse_hm() accepts values of the form "HH:MM".

Examples

1
2
3
parse_hms("12:34:56")
parse_hms("12:34:56.789")
parse_hm("12:34")

tidyverse/hms documentation built on July 31, 2018, 4:14 a.m.