toml: Simple converter from list to TOML.

toTOMLR Documentation

Simple converter from list to TOML.

Description

format_iso8601() is compliant with TOML.

Usage

toTOML(data, usetz = TRUE)

format_iso8601(x, usetz = TRUE, precision = NULL, ...)

Arguments

data

A list.

usetz

Include the time zone in the formatting. If usetz is TRUE, the time zone is included. If usetz is "Z", the time is converted to "UTC" and the time zone is indicated with "Z" ISO8601 notation.

x

An object to convert to ISO8601 character format.

precision

The amount of precision to represent with substrings of "ymdhms", as "y"ear, "m"onth, "d"ay, "h"our, "m"inute, and "s"econd. (e.g. "ymdhm" would show precision through minutes. When NULL, full precision for the object is shown.

...

Additional arguments to methods.


heavywatal/rwtl documentation built on April 29, 2024, 2:02 a.m.