#include <DateTime.h>
|
static bool | isValid (int nHour, int nMin, int nSec, int nMSec) |
Definition at line 103 of file DateTime.h.
◆ Time() [1/4]
Definition at line 378 of file DateTime.cpp.
379{
381}
unsigned long m_uMilliSeconds
◆ Time() [2/4]
Time::Time |
( |
const Time & | src | ) |
|
◆ Time() [3/4]
Time::Time |
( |
int | nHour, |
|
|
int | nMin, |
|
|
int | nSec, |
|
|
int | nMSec = 0 ) |
Definition at line 396 of file DateTime.cpp.
397{
398 assign(nHour, nMin, nSec, nMSec);
399}
void assign(int nHour, int nMin, int nSec, int nMSec=0)
◆ Time() [4/4]
Time::Time |
( |
long | nTotalMSecs | ) |
|
◆ assign() [1/2]
void Time::assign |
( |
int | nHour, |
|
|
int | nMin, |
|
|
int | nSec, |
|
|
int | nMSec = 0 ) |
Definition at line 406 of file DateTime.cpp.
407{
410 + nSec * 1000
411 + nMSec;
412
416}
◆ assign() [2/2]
void Time::assign |
( |
long | nTotalMSecs | ) |
|
◆ decode()
void Time::decode |
( |
int & | nHour, |
|
|
int & | nMin, |
|
|
int & | nSec, |
|
|
int & | nMSec ) const |
◆ hour()
◆ isValid()
bool Time::isValid |
( |
int | nHour, |
|
|
int | nMin, |
|
|
int | nSec, |
|
|
int | nMSec ) |
|
static |
Definition at line 525 of file DateTime.cpp.
526{
527 return (0 <= nHour && nHour <= 23)
528 && (0 <= nMin && nMin <= 59)
529 && (0 <= nSec && nSec <= 59)
530 && (0 <= nMSec && nMSec <= 999);
531}
◆ minute()
int Time::minute |
( |
| ) |
const |
◆ msecond()
int Time::msecond |
( |
| ) |
const |
◆ operator+=()
const Time & Time::operator+= |
( |
long | nMilliSeconds | ) |
|
Definition at line 432 of file DateTime.cpp.
433{
438
439 return *this;
440}
◆ operator-=()
const Time & Time::operator-= |
( |
long | nMilliSeconds | ) |
|
Definition at line 442 of file DateTime.cpp.
443{
448
449 return *this;
450}
◆ operator=()
const Time & Time::operator= |
( |
const Time & | src | ) |
|
◆ second()
int Time::second |
( |
| ) |
const |
◆ toString()
String Time::toString |
( |
| ) |
const |
Definition at line 488 of file DateTime.cpp.
489{
490 return String::format(L"%02d:%02d:%02d.%03d",
495 );
496}
◆ toStringF()
String Time::toStringF |
( |
const wchar_t * | pszFormat = NULL | ) |
|
Definition at line 500 of file DateTime.cpp.
501{
502 if (!pszFormat)
504
506
507 struct tm t;
508 memset(&t, 0, sizeof(struct tm));
512 t.tm_isdst = -1;
513
517 buf->__dataLength =
n;
518
522}
#define DATETIME_FORMAT_BUFFER_SIZE
#define __DCL_ASSERT(expr)
void CharsetConvertException *size_t n
static const wchar_t * FORMAT_STRING
◆ totalMilliSeconds()
long Time::totalMilliSeconds |
( |
| ) |
const |
|
inline |
◆ FORMAT_STRING
const wchar_t * Time::FORMAT_STRING = L"%H:%M:%S" |
|
static |
◆ m_uMilliSeconds
unsigned long Time::m_uMilliSeconds |
|
protected |
The documentation for this class was generated from the following files: