This function generates a character string that suffixes a file name with a time stamp.

timed_fn(main, extension)

Arguments

main

The main file name to be used.

extension

The file extension to be used, e.g. ".csv"

Examples

timed_fn("Q15. ",".xlsx")
#> [1] "Q15.  20241119_180002039014 .xlsx"