Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

time_stamp

Time Stamps for File Names


Description

Generating file name ready iso time stamps.

Usage

time_stamp(ts = Sys.time(), sep = c("-", "_", "_"))

Arguments

ts

one or more POSIX time stamp

sep

separators to be used for formatting

Value

Returns timestamp string in format yyyy-mm-dd_HH_MM_SS ready to be used safely in file names on various operating systems.

Examples

time_stamp()
time_stamp( Sys.time() - 10000 )

dsmisc

Data Science Box of Pandora Miscellaneous

v0.3.3
GPL (>= 2)
Authors
Peter Meissner [aut, cre]
Initial release
2020-09-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.