1N/A/* : : generated by proto : : */ 1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A* Phong Vo <kpv@research.att.com> * 1N/A***********************************************************************/ 1N/A * time conversion support definitions 1N/A#
define tmisleapyear(y) (!((y)%
4)&&(((y)%
100)||!((((y)<
1900)?((y)+
1900):(y))%
400)))
1N/A#
define TM_UTC (
1<<
2)
/* universal coordinated ref */ 1N/A#
define TM_DST (-
60)
/* default minutes for DST */ 1N/A * these indices must agree with tm_dform[] 1N/Atypedef struct /* leap second info */ 1N/A int total;
/* inclusive total since epoch */ 1N/Atypedef struct /* time zone info */ 1N/A short west;
/* minutes west of GMT */ 1N/A short dst;
/* add to tz.west for DST */ 1N/Atypedef struct /* tm library readonly data */ 1N/A char**
format;
/* default TM_* format strings */ 1N/A unsigned char*
lex;
/* format lex type classes */ 1N/A short*
sum;
/* days in months before i */ 1N/Atypedef struct /* tm library global info */