Add DateTime constructor that has a microsecond parameter (#24)
parent
a43acae9ff
commit
835e40a5e6
|
@ -113,6 +113,21 @@ public:
|
||||||
* @param[in] second the second
|
* @param[in] second the second
|
||||||
* @param[in] microsecond the microsecond
|
* @param[in] microsecond the microsecond
|
||||||
*/
|
*/
|
||||||
|
DateTime(int year, int month, int day, int hour, int minute, int second, int microsecond)
|
||||||
|
{
|
||||||
|
Initialise(year, month, day, hour, minute, second, microsecond);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialise to the given data and time.
|
||||||
|
* @param[in] year the year
|
||||||
|
* @param[in] month the month
|
||||||
|
* @param[in] day the day
|
||||||
|
* @param[in] hour the hour
|
||||||
|
* @param[in] minute the minute
|
||||||
|
* @param[in] second the second
|
||||||
|
* @param[in] microsecond the microsecond
|
||||||
|
*/
|
||||||
void Initialise(int year,
|
void Initialise(int year,
|
||||||
int month,
|
int month,
|
||||||
int day,
|
int day,
|
||||||
|
|
Loading…
Reference in New Issue