1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-16 07:07:13 +02:00

More additions to chrono utilities.

This commit is contained in:
Sandu Liviu Catalin
2021-08-18 21:37:33 +03:00
parent 503b61c3df
commit 9d62233cfc
9 changed files with 410 additions and 4 deletions

View File

@ -140,6 +140,11 @@ public:
Set(year, month, day, hour, minute, second, millisecond);
}
/* --------------------------------------------------------------------------------------------
* Time-stamp constructor.
*/
explicit Datetime(int64_t ts);
/* --------------------------------------------------------------------------------------------
* Copy constructor.
*/
@ -572,6 +577,11 @@ public:
* Convert this date-time instance to a time-stamp.
*/
SQMOD_NODISCARD Timestamp GetTimestamp() const;
/* --------------------------------------------------------------------------------------------
*
*/
std::time_t ToTimeT() const;
};
} // Namespace:: SqMod