5.7 Format Strings
20220526 The date format strings will replace the %X
special characters with specific components from the date (and time).
For example, based on the result of a call to the function
lubridate::now(), which is Sunday, 13 August
2023, 06:26:17 AM, the format is %A, %e %B %Y, %H:%M:%S %p
.
The format strings that are available include:
%a
\(\longrightarrow\) Sun (3 char day name)%A
\(\longrightarrow\) Sunday (full day name)%b
\(\longrightarrow\) Aug (3 char month name)%B
\(\longrightarrow\) August (full month name)%d
\(\longrightarrow\) 13 (leading 0 numeric day of month)%e
\(\longrightarrow\) 13 (numeric day of month)%H
\(\longrightarrow\) 06 (numeric hours)%m
\(\longrightarrow\) 08 (numeric month)%M
\(\longrightarrow\) 26 (numeric minutes)%p
\(\longrightarrow\) AM (lower morning or afternoon)%P
\(\longrightarrow\) am (upper morning or afternoon)%S
\(\longrightarrow\) 17 (numeric seconds)%Y
\(\longrightarrow\) 2023 (4 digit year)%Z
\(\longrightarrow\) AEST (time zone)
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0
