time_stamp {dsmisc} | R Documentation |
Generating file name ready iso time stamps.
time_stamp(ts = Sys.time(), sep = c("-", "_", "_"))
ts |
one or more POSIX time stamp |
sep |
separators to be used for formatting |
Returns timestamp string in format yyyy-mm-dd_HH_MM_SS ready to be used safely in file names on various operating systems.
time_stamp()
time_stamp( Sys.time() - 10000 )