format: filename__year-month-day_hour-minutes-seconds_timezone.extension

append_time(path, ext)

Arguments

path

(string) file path (existence is not checked)

ext

(string) Optional extension for the file

Value

(string) A file path with time stamp appended in the format described in the description

Examples

append_time("hello/a.b")
#> [1] "hello/a__2019-03-07_20-01-40.b"
append_time("hello/a.b", "R")
#> [1] "hello/a__2019-03-07_20-01-40.R"