/*+++*
 *  title:	ctime.c
 *  abstract:	print current time in ctime(3) format.
 *  author:	T.R.Hageman, Groningen, The Netherlands.
 *  created:	February 1993
 *  description:
 *
 *	This is a dead simple support program for TINY joves.
 *	All it does is spit out the current time a la ctime(3).
 *	We could have used "/bin/date" instead (and in fact up to
 *	version 4.6.14.30 we did), but that would introduce an
 *	incompatibility with JOVEs that use builtin ctime():
 *	date(1) adds timezone to the time string.
 *---*/

#include "tune.h"

RCS("$Id: ctime.c,v 14.31.0.10 1994/05/22 16:36:30 tom Exp tom $")

#include <time.h>

extern time_t	time __(( time_t *_(timep) ));
extern char	*ctime __(( const time_t *_(timep) ));

time_t	now;

main()
{
	time(&now);
	write(1, ctime(&now), (size_t)25);

	return 0;
}

/*======================================================================
 * $Log: ctime.c,v $
 * Revision 14.31.0.10  1994/05/22  16:36:30  tom
 * (<sys/types.h>): removed.
 *
 * Revision 14.31  1993/02/16  23:07:20  tom
 * Initial revision.
 *
 *======================================================================*/
