1 #ifndef BZS_DB_PROTOCOL_TDAP_BTRDATE_H
2 #define BZS_DB_PROTOCOL_TDAP_BTRDATE_H
23 #include <bzs/env/compiler.h>
112 __int64 getDateTimeInt(
int& time);
122 wchar_t* toString(
wchar_t* retbuf);
123 void fromString(
const wchar_t* p);
125 char* toString(
char* retbuf);
126 void fromString(
const char* p);
137 explicit bdate(
const _TCHAR* date);
138 const _TCHAR* year_str();
139 const _TCHAR* month_str();
140 const _TCHAR* date_str();
142 int year() {
return m_date.yy; };
144 int date() {
return m_date.dd; };
149 const _TCHAR*
c_str();
152 PACKAGE btrDate
atobtrd(
const char* date);
154 PACKAGE
const char*
btrdtoa(
const btrDate& d,
char* retbuf,
155 bool w3_format =
false);
157 PACKAGE
const char*
btrttoa(
const btrTime& t,
char* retbuf
160 PACKAGE btrTime
atobtrt(
const char* p);
162 PACKAGE btrDateTime
atobtrs(
const char* p);
164 PACKAGE
const char*
btrstoa(
const btrDateTime& d,
char* retbuf,
165 bool w3_format =
false);
167 inline const char*
btrdtoa(
int date,
char* retbuf,
bool w3_format =
false)
171 return btrdtoa(d, retbuf, w3_format);
174 inline const char*
btrttoa(
int time,
char* retbuf)
181 inline const char*
btrstoa(__int64 datetime,
char* retbuf,
bool w3_format =
false)
185 return btrstoa(t, retbuf, w3_format);
190 PACKAGE btrDate
atobtrd(
const wchar_t* date);
192 PACKAGE
const wchar_t*
btrdtoa(
const btrDate& d,
wchar_t* retbuf,
193 bool w3_format =
false);
195 PACKAGE
const wchar_t*
btrttoa(
const btrTime& t,
wchar_t* retbuf
198 PACKAGE btrTime
atobtrt(
const wchar_t* p);
200 PACKAGE btrDateTime
atobtrs(
const wchar_t* p);
202 PACKAGE
const wchar_t*
btrstoa(
const btrDateTime& d,
wchar_t* retbuf,
203 bool w3_format =
false);
205 inline const wchar_t*
btrdtoa(
int date,
wchar_t* retbuf,
bool w3_format =
false)
209 return btrdtoa(d, retbuf, w3_format);
212 inline const wchar_t*
btrttoa(
int time,
wchar_t* retbuf)
219 inline const wchar_t*
btrstoa(__int64 datetime,
wchar_t* retbuf,
bool w3_format =
false)
223 return btrstoa(t, retbuf, w3_format);
234 return btrdtoa(d, (_TCHAR*)NULL);
239 return btrttoa(d, (_TCHAR*)NULL);
244 return btrstoa(d, (_TCHAR*)NULL, w3_format);
254 #endif // BZS_DB_PROTOCOL_TDAP_BTRDATE_H
int date()
Definition: btrDate.h:144
char uu
Definition: btrDate.h:84
int i
Definition: btrDate.h:77
pragma_pop
Definition: btrDate.h:107
short yy
Definition: btrDate.h:74
btrDate btr_date()
Definition: btrDate.h:148
PACKAGE btrDateTime atobtrs(const char *p)
char ss
Definition: btrDate.h:85
char dd
Definition: btrDate.h:72
int year()
Definition: btrDate.h:142
__int64 i64
Definition: btrDate.h:101
PACKAGE const char * btrstoa(const btrDateTime &d, char *retbuf, bool w3_format=false)
PSQL形式の時刻型の共用体
Definition: btrDate.h:80
PSQL形式のタイムスタンプ型クラス
Definition: btrDate.h:109
PACKAGE const char * btrdtoa(const btrDate &d, char *retbuf, bool w3_format=false)
PACKAGE btrDate atobtrd(const char *date)
int i
Definition: btrDate.h:90
PSQL形式の日付型の共用体
Definition: btrDate.h:68
btrDate date
Definition: btrDate.h:98
char mm
Definition: btrDate.h:73
unsigned __int64 i64
Definition: btrDate.h:115
char hh
Definition: btrDate.h:87
btrTime time
Definition: btrDate.h:97
int month()
Definition: btrDate.h:146
char nn
Definition: btrDate.h:86
pragma_pack1
Definition: btrDate.h:36
PACKAGE const char * btrttoa(const btrTime &t, char *retbuf)
const _TCHAR * c_str(const btrDate &d)
Definition: btrDate.h:232
PSQL形式の日時型の共用体
Definition: btrDate.h:93
btrDate型の変換クラス
Definition: btrDate.h:131
PACKAGE btrTime atobtrt(const char *p)