summaryrefslogtreecommitdiffstats
path: root/src/datetime.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2022-03-20 20:43:43 (EDT)
committer P. J. McDermott <pj@pehjota.net>2022-03-20 20:43:43 (EDT)
commit99929166475f719dc8e445fe0061ff96bac6acec (patch)
tree25015482b6d552ef0d1cb6766481469145ce996b /src/datetime.c
parentdc8ce050ea8f2011fbbb2879ed3b10c183a3143d (diff)
downloadatsign-99929166475f719dc8e445fe0061ff96bac6acec.zip
atsign-99929166475f719dc8e445fe0061ff96bac6acec.tar.gz
atsign-99929166475f719dc8e445fe0061ff96bac6acec.tar.bz2
datetime: Add formats with "."
Diffstat (limited to 'src/datetime.c')
-rw-r--r--src/datetime.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/datetime.c b/src/datetime.c
index a3b4c58..962c867 100644
--- a/src/datetime.c
+++ b/src/datetime.c
@@ -35,10 +35,13 @@ static const char *DATETIME_DATE_FMTS_[] = {
" %a ", /* Wed */
" %Y-%m-%d ", /* 1969-12-31 */
" %Y/%m/%d ", /* 1969/12/31 */
+ " %Y.%m.%d ", /* 1969.12.31 */
" %m-%d-%Y ", /* 12-31-1969 */
" %m-%d ", /* 12-31 */
" %m/%d/%Y ", /* 12/31/1969 */
" %m/%d ", /* 12/31 */
+ " %m.%d.%Y ", /* 12.31.1969 */
+ " %m.%d ", /* 12.31 */
" %e %b %Y ", /* 31 Dec 1969 */
" %e %b ", /* 31 Dec */
" %d-%b-%Y ", /* 31-Dec-1969 */
@@ -81,6 +84,10 @@ static const char *DATETIME_TIME_FMTS_[] = {
" %H:%M:%S ", /* 19:00:01 */
" %I:%M %p ", /* 7:00 PM */
" %H:%M ", /* 19:00 */
+ " %I.%M.%S %p ", /* 7.00.01 PM */
+ " %H.%M.%S ", /* 19.00.01 */
+ " %I.%M %p ", /* 7.00 PM */
+ " %H.%M ", /* 19.00 */
" %I%M%S %p ", /* 70001 PM */
" %H%M%S ", /* 190001 */
" %I%M %p ", /* 700 PM */