1 #ifndef BZS_DB_PROTOCOL_TDAP_BTRDATE_H
2 #define BZS_DB_PROTOCOL_TDAP_BTRDATE_H
22 #include <bzs/env/compiler.h>
23 #include <bzs/env/crosscompile.h>
111 __int64 getDateTimeInt(
int& time);
121 wchar_t* toString(
wchar_t* retbuf);
122 void fromString(
const wchar_t* p);
124 char* toString(
char* retbuf);
125 void fromString(
const char* p);
136 explicit bdate(
const _TCHAR* date);
137 const _TCHAR* year_str();
138 const _TCHAR* month_str();
139 const _TCHAR* date_str();
141 int year() {
return m_date.yy; };
143 int date() {
return m_date.dd; };
148 const _TCHAR*
c_str();
151 PACKAGE btrDate
atobtrd(
const char* date);
153 PACKAGE
const char*
btrdtoa(
const btrDate& d,
char* retbuf,
154 bool type_vb =
false);
156 PACKAGE
const char*
btrttoa(
const btrTime& t,
char* retbuf,
157 bool type_vb =
false);
159 PACKAGE btrTime
atobtrt(
const char* p);
161 inline const char*
btrdtoa(
int date,
char* retbuf,
bool type_vb =
false)
165 return btrdtoa(d, retbuf, type_vb);
168 inline const char*
btrttoa(
int time,
char* retbuf,
bool type_vb =
false)
172 return btrttoa(t, retbuf, type_vb);
176 PACKAGE btrDate
atobtrd(
const wchar_t* date);
178 PACKAGE
const wchar_t*
btrdtoa(
const btrDate& d,
wchar_t* retbuf,
179 bool type_vb =
false);
181 PACKAGE
const wchar_t*
btrttoa(
const btrTime& t,
wchar_t* retbuf,
182 bool type_vb =
false);
184 PACKAGE btrTime
atobtrt(
const wchar_t* p);
186 inline const wchar_t*
btrdtoa(
int date,
wchar_t* retbuf,
bool type_vb =
false)
190 return btrdtoa(d, retbuf, type_vb);
193 inline const wchar_t*
btrttoa(
int time,
wchar_t* retbuf,
bool type_vb =
false)
197 return btrttoa(t, retbuf, type_vb);
202 PACKAGE
const _TCHAR*
btrstoa(
const btrDateTime& d, _TCHAR* retbuf = NULL,
203 bool type_vb =
false);
205 PACKAGE btrDateTime
atobtrs(
const _TCHAR* p);
209 return btrdtoa(d, (_TCHAR*)NULL);
214 return btrttoa(d, (_TCHAR*)NULL);
219 return btrstoa(d, (_TCHAR*)NULL, type_vb);
229 #endif // BZS_DB_PROTOCOL_TDAP_BTRDATE_H
int date()
Definition: btrDate.h:143
const _TCHAR * protocol(const _TCHAR *uri)
Definition: uri.h:42
char uu
Definition: btrDate.h:83
int i
Definition: btrDate.h:76
pragma_pop
Definition: btrDate.h:106
short yy
Definition: btrDate.h:73
PACKAGE const char * btrdtoa(const btrDate &d, char *retbuf, bool type_vb=false)
btrDate btr_date()
Definition: btrDate.h:147
PACKAGE const _TCHAR * btrstoa(const btrDateTime &d, _TCHAR *retbuf=NULL, bool type_vb=false)
char ss
Definition: btrDate.h:84
char dd
Definition: btrDate.h:71
int year()
Definition: btrDate.h:141
__int64 i64
Definition: btrDate.h:100
PSQL形式の時刻型の共用体
Definition: btrDate.h:79
PSQL形式のタイムスタンプ型クラス
Definition: btrDate.h:108
PACKAGE btrDateTime atobtrs(const _TCHAR *p)
PACKAGE btrDate atobtrd(const char *date)
int i
Definition: btrDate.h:89
PACKAGE const char * btrttoa(const btrTime &t, char *retbuf, bool type_vb=false)
PSQL形式の日付型の共用体
Definition: btrDate.h:67
btrDate date
Definition: btrDate.h:97
char mm
Definition: btrDate.h:72
unsigned __int64 i64
Definition: btrDate.h:114
char hh
Definition: btrDate.h:86
btrTime time
Definition: btrDate.h:96
int month()
Definition: btrDate.h:145
char nn
Definition: btrDate.h:85
pragma_pack1
Definition: btrDate.h:35
const _TCHAR * c_str(const btrDate &d)
Definition: btrDate.h:207
PSQL形式の日時型の共用体
Definition: btrDate.h:92
btrDate型の変換クラス
Definition: btrDate.h:130
PACKAGE btrTime atobtrt(const char *p)