set_timestamp_format: Set Timestamp Format

Description Usage Arguments Details Examples

View source: R/configurations.R

Description

Set timestamp format for use in output logs. This function performs no time format validations, but will echo out the current time in the provided format for manual validation.

Usage

1
set_timestamp_format(ts_format = "%Y-%m-%dT%H:%M:%S%z", confirm = TRUE)

Arguments

ts_format

ISO date format. Defaults to ISO-8601 (e.g. "2020-01-01T00:00:00+0000").

confirm

Print confirmation message of timestamp format? Defaults to TRUE.

Details

This function provides no means of setting a timezone, and instead relies on the host system's time configuration to provide this. This is to enforce consistency across software running on the host.

Examples

1
set_timestamp_format("%Y-%m-%d %H:%M:%S")

loggit documentation built on Feb. 28, 2021, 9:06 a.m.