diff options
Diffstat (limited to 'time/strftime.c')
-rw-r--r-- | time/strftime.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/time/strftime.c b/time/strftime.c index 8d94dcd..e66a444 100644 --- a/time/strftime.c +++ b/time/strftime.c @@ -883,6 +883,11 @@ my_strftime (s, maxsize, format, tp) cpy (buf + sizeof (buf) - bufp, bufp); break; + case 'F': + if (modifier != 0) + goto bad_format; + subfmt = "%Y-%m-%d"; + goto subformat; case 'H': if (modifier == 'E') @@ -1029,6 +1034,7 @@ my_strftime (s, maxsize, format, tp) add (1, *p = '\t'); break; + case 'f': case 'u': /* POSIX.2 extension. */ DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1); |