static char *rcsid
= "$Header: /f/osi/dsap/common/RCS/time.c,v 7.1 91/02/22 09:20:33 mrose Interim $";
* $Header: /f/osi/dsap/common/RCS/time.c,v 7.1 91/02/22 09:20:33 mrose Interim $
* Revision 7.1 91/02/22 09:20:33 mrose
* Revision 7.0 89/11/23 21:44:38 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
890602093221Z -> 09:32:21 GMT, on June 2nd 1989.
static UTC
qstr2utct (s
, len
)
&& strncmp (s
, "1989", 4) == 0
&& (ut
= str2utct (s
+ 2, len
- 2)))
return str2utct (s
, len
);
#define str2utct qstr2utct
(void) build_UNIV_UTCTime (&ret_pe
,0,0,x
,NULL
);
static char * timedec (pe
)
if (parse_UNIV_UTCTime (pe
,0,0,&x
,NULL
) == NOTOK
)
utcprint (ps
,time
,format
)
if (format
== READOUT
&& (ut
= str2utct (time
, strlen (time
)))) {
mtime
= gtime (ut2tm (ut
));
ps_printf (ps
, "%-24.24s", ctime (&mtime
));
ps_printf (ps
, "%s", time
);
if ((ut
= str2utct (a
, strlen (a
))) == NULL
)
a_time
= gtime (ut2tm (ut
));
if ((ut
= str2utct (b
, strlen (b
))) == NULL
)
return ((mdiff
= a_time
- gtime (ut2tm (ut
))) == 0L ? 0
(void) add_attribute_syntax ("UTCTime",
(IFP
) timeenc
, (IFP
) timedec
,