date_str: Return a filename-friendly string with the current time with...

View source: R/misc.R

date_strR Documentation

Return a filename-friendly string with the current time with the typical defaults

Description

Return a filename-friendly string with the current time with the typical defaults

Usage

date_str(format = "%Y%m%d_%H%M", tz = "Australia/Melbourne")

Arguments

format

sprintf compliant. Passed to format.

tz

OlsonName compliant string. Passed as "tzone" attribute to POSIXct object

Examples


paste0("/my/path/file_from_date_", date_str())


AltfunsMA/cptools documentation built on Aug. 7, 2022, 5:44 p.m.