|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T t
Length: 847 (0x34f)
Types: TextFile
Names: »t-time.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z«
└─⟦e5a54fb17⟧
└─⟦this⟧ »pp-5.0/Tools/misc/t-time.c«
/* t-time.c: tests the time routines rfc2UTC and UTC2rfc */
# ifndef lint
static char Rcsid[] = "@(#)$Header: /cs/research/pp/hubris/pp-beta/Tools/misc/RCS/t-time.c,v 5.0 90/09/20 16:27:16 pp Exp Locker: pp $";
# endif
/*
* $Header: /cs/research/pp/hubris/pp-beta/Tools/misc/RCS/t-time.c,v 5.0 90/09/20 16:27:16 pp Exp Locker: pp $
*
* $Log: t-time.c,v $
* Revision 5.0 90/09/20 16:27:16 pp
* rcsforce : 5.0 public release
*
*/
#include "util.h"
main ()
{
char buf[BUFSIZ];
UTC ut;
while (fputs ("Time> ", stdout), fflush(stdout), gets (buf)) {
if (rfc2UTC (buf, &ut) == NOTOK)
printf ("rfc2UTC failed\n");
printf ("UTC time = %s\n", utct2str (ut));
printf ("GEN time = %s\n", gent2str (ut));
if (UTC2rfc (ut, buf) == NOTOK)
printf ("UTC2rfc failed\n");
printf ("new rfc = %s\n", buf);
}
exit (0);
}