36 #include "../api_core.h"
37 #include "../System/cl_platform.h"
55 CL_DateTime(
int year,
int month,
int day,
int hour = 0,
int minute = 0,
int seconds = 0,
int nanoseconds = 0, TimeZone timezone=utc_timezone);
78 unsigned short get_year()
const;
83 unsigned char get_month()
const;
84 unsigned char get_day()
const;
85 unsigned char get_hour()
const;
86 unsigned char get_minutes()
const;
87 unsigned char get_seconds()
const;
88 unsigned int get_nanoseconds()
const;
89 TimeZone get_timezone()
const;
94 unsigned int get_day_of_week()
const;
101 void set_date(
int year,
int month,
int day,
int hour = 0,
int minute = 0,
int seconds = 0,
int nanoseconds = 0, TimeZone timezone = utc_timezone);
102 void set_year(
int year);
103 void set_month(
int month);
104 void set_day(
int day);
105 void set_hour(
int hour);
106 void set_minutes(
int minutes);
107 void set_seconds(
int seconds);
108 void set_nanoseconds(
int nanoseconds);
109 void set_timezone(TimeZone timezone);
132 CL_String to_short_datetime_string()
const;
154 void throw_if_invalid_date(
int year,
int month,
int day,
int hour,
int minute,
int seconds,
int nanoseconds)
const;
155 void throw_if_null()
const;
161 unsigned char minute;
162 unsigned char seconds;
163 unsigned int nanoseconds;
166 static const cl_byte64 ticks_from_1601_to_1900;