time_string: Get a Character String of Seconds since January, 1970

Description Usage Arguments Value Examples

View source: R/func_strings-time.R

Description

This function returns a character string of user-defined length based on the current number of seconds since January 1st, 1970. It is useful for prototyping data storage pipelines where the actual file name may be unknown.

Usage

1

Arguments

length

Number of characters to make the string.

Value

A character string based on the current time since January 1st, 1970.

Examples

1
2
3
4
time_string(length = 4)
time_string(length = 6)
# Will throw a warning
time_string(length = 4646)

jdtrat/jdtools documentation built on Dec. 20, 2021, 10:05 p.m.