/*
 *	File:					MakeTime().h
 *	Description:	Returns the time in a time_t value
 *
 *	(C) 1993-1994, Ketil Hunn
 *
 */

#ifndef MAKETIME_H
#define MAKETIME_H

#define NONE -1

#include <time.h>
#include <string.h>
#include <dos.h>

ULONG NewMakeTime(struct EventNode	*node)
{
	struct timeval		tv;
	struct ClockData	clockdata;

	GetSysTime(&tv);
	Amiga2Date(tv.tv_secs, &clockdata);
	clockdata.sec=0;

	if(node!=NULL)
	{
		clockdata.hour	=node->hour;
		clockdata.min			=node->minutes;
	}
	return CheckDate(&clockdata);
}

#endif
