Datetimes_as_strings | R Documentation |
Functions that extract the current date and time (in UTC) and convert them to formatted strings.
camr_ymd(sep = "_")
camr_ymd_hm(sep = "_", split = "-")
camr_ymd_hms(sep = "_", split = "-")
camr_hms(sep = "_")
sep |
A character string, the separator between the year, month, day, and/or hour, minutes, and seconds. |
split |
A character string, the separator between the date and the time. |
A character string.
Kevin Potter
# YYYY_MM_DD
camr_ymd()
# YYYY-MM-DD
camr_ymd('-')
# YYYYMMDD
camr_ymd('')
# YYYY_MM_DD-HH_MM
camr_ymd_hm()
# YYYYMMDD-HHMM
camr_ymd_hm('')
# YYYYMMDD_HHMM
camr_ymd_hm('', '_')
# YYYY_MM_DD-HH_MM_SS
camr_ymd_hms()
# YYYYMMDD-HHMMSS
camr_ymd_hms('')
# YYYYMMDD_HHMMSS
camr_ymd_hm('', '_')
# HH_MM_SS
camr_hms()
# HH:MM:SS
camr_hms(':')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.