uglydate.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1996 by Sun Microsystems, Inc.
* All Rights Reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* uglydate - convert a time stamp to something barely readable
* The string returned is 37 characters long.
*/
#include <stdio.h>
#include "ntp_fp.h"
#include "ntp_unixtime.h"
#include "lib_strbuf.h"
#include "ntp_stdlib.h"
#ifndef TM_IN_SYS_TIME
#include <time.h>
#endif
char *
{
char *bp;
char *timep;
long msec;
int year;
LIB_GETBUF(bp);
/*
* Probably not a real good thing to do. Oh, well.
*/
year = 0;
} else {
while (year >= 100)
year -= 100;
}
return bp;
}