changeset 20252:cb1aec706f64

automatically generated from GPLed version
author Ulrich Drepper <drepper@redhat.com>
date Wed, 12 Nov 1997 01:24:57 +0000
parents 0457d32c5b05
children a7d1d668f57f
files src/mktime.c src/strftime.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/mktime.c	Tue Nov 11 04:00:53 1997 +0000
+++ b/src/mktime.c	Wed Nov 12 01:24:57 1997 +0000
@@ -196,7 +196,7 @@
 
   /* The maximum number of probes (calls to CONVERT) should be enough
      to handle any combinations of time zone rule changes, solar time,
-     and leap seconds.  Posix.1 prohibits leap seconds, but some hosts
+     and leap seconds.  POSIX.1 prohibits leap seconds, but some hosts
      have them anyway.  */
   int remaining_probes = 4;
 
--- a/src/strftime.c	Tue Nov 11 04:00:53 1997 +0000
+++ b/src/strftime.c	Wed Nov 12 01:24:57 1997 +0000
@@ -885,6 +885,11 @@
 	  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')
@@ -1031,6 +1036,7 @@
 	  add (1, *p = '\t');
 	  break;
 
+	case 'f':
 	case 'u':		/* POSIX.2 extension.  */
 	  DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1);