#ifndef __INC_POS_PLIB_TIME_C
#define __INC_POS_PLIB_TIME_C
/*******************************************************************
 $CRT 18 Mar 1996 : hb

 $AUT Holger Burkarth
 $DAT >>Time.c<<   24 Nov 1996    18:29:35 - (C) ProDAD
*******************************************************************/

// mcpp:cppc -c p:pLib/Time.c


#ifdef __cplusplus
extern "C" {
#endif

 #include <time.h>

#ifdef __cplusplus
}
#endif

#include "p:pDOS/Files.h"

#include "p:pProto/pDOS2.h"
#include "p:pDOS/DosBase.h"

/*----------------------------------
-----------------------------------*/
clock_t clock(void);
double difftime(time_t _time1, time_t _time2);

time_t mktime(struct tm *_timeptr);

time_t time(time_t *_timer)
{
  struct pOS_DateStamp DS;
  struct pOS_GetDateStamp(&DS);
  return((DS.ds_Days<<17) + DS.ds_Minute*60 + DS.ds_Tick/pOS_TICKS_PER_SECOND);
}

char *asctime(const struct tm *_timeptr);
char *ctime(const time_t *_timer);
struct tm *gmtime(const time_t *_timer) ; // durchlassen
struct tm *localtime(const time_t *_timer) ; // durchlassen

size_t strftime(char *_s, size_t _maxsize,const char *_format,
                const struct tm *_timeptr);  // durchlassen



#endif