diff options
author | hobbs <hobbs> | 2000-01-15 01:50:43 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-01-15 01:50:43 (GMT) |
commit | 91b7d84e6d9216cf464bfb49a3f0721e57362e5e (patch) | |
tree | 0fc9a31cc2ca87eb88298595dbd7b157b0ec4bb9 | |
parent | 35d4ffd9a74d652788b42a6c8300dbf3c2a62eb6 (diff) | |
download | tcl-91b7d84e6d9216cf464bfb49a3f0721e57362e5e.zip tcl-91b7d84e6d9216cf464bfb49a3f0721e57362e5e.tar.gz tcl-91b7d84e6d9216cf464bfb49a3f0721e57362e5e.tar.bz2 |
added IsLeapYear macro (from tclGetDate.y)
-rw-r--r-- | compat/strftime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/strftime.c b/compat/strftime.c index 1c14ca8..2203536 100644 --- a/compat/strftime.c +++ b/compat/strftime.c @@ -8,7 +8,7 @@ * source. See the copyright notice below for details on redistribution * restrictions. The "license.terms" file does not apply to this file. * - * RCS: @(#) $Id: strftime.c,v 1.6 2000/01/14 22:15:51 ericm Exp $ + * RCS: @(#) $Id: strftime.c,v 1.7 2000/01/15 01:50:43 hobbs Exp $ */ /* @@ -45,7 +45,7 @@ */ #if defined(LIBC_SCCS) -static char *rcsid = "$Id: strftime.c,v 1.6 2000/01/14 22:15:51 ericm Exp $"; +static char *rcsid = "$Id: strftime.c,v 1.7 2000/01/15 01:50:43 hobbs Exp $"; #endif /* LIBC_SCCS */ #include <time.h> @@ -55,6 +55,7 @@ static char *rcsid = "$Id: strftime.c,v 1.6 2000/01/14 22:15:51 ericm Exp $"; #include "tclPort.h" #define TM_YEAR_BASE 1900 +#define IsLeapYear(x) ((x % 4 == 0) && (x % 100 != 0 || x % 400 == 0)) typedef struct { const char *abday[7]; |