Add DateTime constructor that has a microsecond parameter (#24)

feature/rm-travis
srcejon 2022-11-13 11:13:43 +00:00 committed by GitHub
parent a43acae9ff
commit 835e40a5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -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,