More time functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1506 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -60,6 +60,16 @@ struct tm {
|
|||||||
int tm_isdst;
|
int tm_isdst;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Timezone representation, default is UTC */
|
||||||
|
extern struct _timezone {
|
||||||
|
char daylight; /* True if daylight savings time active */
|
||||||
|
long timezone; /* Number of seconds behind UTC */
|
||||||
|
char tzname[5]; /* Name of timezone, e.g. CET */
|
||||||
|
char dstname[5]; /* Name when daylight true, e.g. CEST */
|
||||||
|
} _tz;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(__CBM__)
|
#if defined(__CBM__)
|
||||||
# if defined(__CBM510__) || defined(__CBM610__)
|
# if defined(__CBM510__) || defined(__CBM610__)
|
||||||
/* The 510/610 gets its clock from the AC current */
|
/* The 510/610 gets its clock from the AC current */
|
||||||
@@ -81,7 +91,12 @@ unsigned _clocks_per_sec (void);
|
|||||||
|
|
||||||
|
|
||||||
/* Function prototypes */
|
/* Function prototypes */
|
||||||
|
char* __fastcall__ asctime (const struct tm* timep);
|
||||||
clock_t clock (void);
|
clock_t clock (void);
|
||||||
|
char* __fastcall__ ctime (const time_t* timep);
|
||||||
|
struct tm* __fastcall__ gmtime (const time_t* timep);
|
||||||
|
struct tm* __fastcall__ localtime (const time_t* timep);
|
||||||
|
time_t __fastcall__ mktime (struct tm* timep);
|
||||||
time_t __fastcall__ time (time_t* t);
|
time_t __fastcall__ time (time_t* t);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user