Skip to contents

Insert date/time stamp

Usage

dtstamp(include_time = FALSE, side = "none")

Arguments

include_time

logical, include time?

side

include an underscore (_) on the 'left' or 'right' side (default is 'none')

Value

polished date (or date and time) stamp

Examples

dtstamp()
#> [1] "2023-12-22"
dtstamp(TRUE)
#> [1] "2023-12-22-174419"
dtstamp(FALSE, "r")
#> [1] "2023-12-22_"
dtstamp(TRUE, "l")
#> [1] "_2023-12-22-174419"