From 9365250e4e95369f2a708707a9c43840211f2314 Mon Sep 17 00:00:00 2001 From: Oliver Webb Date: Wed, 31 Jul 2024 23:13:53 -0500 Subject: [PATCH] strptime %F --- src/time/strptime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/time/strptime.c b/src/time/strptime.c index c54a0d8c..05c28b71 100644 --- a/src/time/strptime.c +++ b/src/time/strptime.c @@ -55,6 +55,10 @@ char *strptime(const char *restrict s, const char *restrict f, struct tm *restri min = 1; range = 31; goto numeric_range; + case 'F': + s = strptime(s, "%Y-%m-%d", tm); + if (!s) return 0; + break; case 'D': s = strptime(s, "%m/%d/%y", tm); if (!s) return 0; -- 2.46.0