34 bool set_date(
int day,
int month,
int year);
38 bool set_time(
int hour,
int minute,
int second);
42 bool set_datetime(
int day,
int month,
int year,
int hour,
int minute,
int second);
47 bool set_date_asstring(
const hk_string& s);
51 bool set_time_asstring(
const hk_string& s);
55 bool set_datetime_asstring(
const hk_string& s);
59 hk_string date_asstring(
void)
const;
63 hk_string time_asstring(
void)
const;
67 hk_string datetime_asstring(
void)
const;
75 void set_dateformat(
const hk_string& f);
83 void set_timeformat(
const hk_string& f);
94 void set_datetimeformat(
const hk_string& f);
96 int day()
const {
return p_day;}
97 int month()
const{
return p_month;}
98 int year()
const{
return p_year;}
99 int hour()
const{
return p_hour;}
100 int minute()
const{
return p_minute;}
101 int second()
const {
return p_second;}
121 bool is_ok_date(
int day,
int month,
int year);
122 bool is_ok_time(
int hour,
int minute,
int second);
125 void p_dateasstring(
void)
const ;
126 void p_timeasstring(
void)
const;
127 int p_setvalue(
int &l,
const hk_string& s,
bool is_date=
false);
128 int p_year,p_month,p_day;
129 int p_second,p_minute,p_hour;
130 hk_string p_dateformat;
131 hk_string p_timeformat;
132 hk_string p_datetimeformat;
133 mutable hk_string buffer;
143 hk_string transfer_date(
const hk_string& date,
const hk_string& originalformat,
const hk_string& targetformat);
148 hk_string transfer_time(
const hk_string& time,
const hk_string& originalformat,
const hk_string& targetformat);
153 hk_string transfer_datetime(
const hk_string& datetime,
const hk_string& originalformat,
const hk_string& targetformat);
basic class for all other defined classes.
Definition: hk_class.h:52
translates date and/or time values in different formats
Definition: hk_datetime.h:25