CMGDK r49-rc2
|
时间类 更多...
#include <DateTime.H>
公有成员 | |
Time (int=0) | |
Time (int, int, int, int) | |
void | Sync () |
和系统时间同步 | |
bool | SaveToStream (Stream *) |
bool | LoadFromStream (Stream *) |
公有属性 | |
Property< int > | Hour |
时 | |
Property< int > | Minute |
分 | |
Property< int > | Second |
秒 | |
Property< int > | MicroSecond |
千分秒 | |
保护成员 | |
int | GetHours () |
int | GetMinutes () |
int | GetSeconds () |
int | GetMicroSeconds () |
void | SetHours (int) |
void | SetMinutes (int) |
void | SetSeconds (int) |
void | SetMicroSeconds (int) |
void | InitPrivate () |
时间类
时间类,这个类用来保存和计算时间。
当您对Hours,Minutes,Seconds中任何一个值进行加减时,其它值都会自动计算。如:11:30这个值,使用Minutes+=55。会自动计算出55分钟后的时间,值为12:25
hgl::Time::Time | ( | int | t = 0 | ) |
int hgl::Time::GetHours | ( | ) | [inline, protected] |
int hgl::Time::GetMicroSeconds | ( | ) | [inline, protected] |
int hgl::Time::GetMinutes | ( | ) | [inline, protected] |
int hgl::Time::GetSeconds | ( | ) | [inline, protected] |
void hgl::Time::InitPrivate | ( | ) | [protected] |
bool hgl::Time::LoadFromStream | ( | Stream * | str | ) | [virtual] |
bool hgl::Time::SaveToStream | ( | Stream * | str | ) | [virtual] |
void hgl::Time::SetHours | ( | int | h | ) | [protected] |
void hgl::Time::SetMicroSeconds | ( | int | ms | ) | [protected] |
void hgl::Time::SetMinutes | ( | int | m | ) | [protected] |
void hgl::Time::SetSeconds | ( | int | s | ) | [protected] |
void hgl::Time::Sync | ( | ) |
和系统时间同步