iso8601_period_to_text: ISO 8601 period to natural text

View source: R/harmonised-reading.R

iso8601_period_to_textR Documentation

ISO 8601 period to natural text

Description

This function converts an ISO 8601 period (e.g. PT1H30M) to natural text (in the example, "1 hour, 30 mins").

Usage

iso8601_period_to_text(x, only_first = F)

Arguments

x

<string> defining the frequency to be converted. It must follow ISO 8601 format representing the time step.

only_first

<boolean> specifying if only the first timestep item should be converted.

Value

<string> with the time step in natural text.


biggproject/biggr documentation built on Oct. 2, 2024, 11:13 p.m.