Skip to content
Snippets Groups Projects
Commit 46c3cc26 authored by deuce's avatar deuce
Browse files

Use size-based type for isoDate/Time_t

parent 6697272d
No related branches found
No related tags found
No related merge requests found
......@@ -79,8 +79,8 @@ xpTimeZone_t xpTimeZone_local(void);
/* Decimal-coded ISO-8601 date/time functions */
/**********************************************/
typedef ulong isoDate_t; /* CCYYMMDD (decimal) */
typedef ulong isoTime_t; /* HHMMSS (decimal) */
typedef uint32_t isoDate_t; /* CCYYMMDD (decimal) */
typedef uint32_t isoTime_t; /* HHMMSS (decimal) */
#define isoDate_create(year,mon,day) (((year)*10000)+((mon)*100)+(day))
#define isoTime_create(hour,min,sec) (((hour)*10000)+((min)*100)+((unsigned)sec))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment