std::chrono::current_zone - cppreference.com (original) (raw)
From cppreference.com
Convenience function for obtaining local time zone from the time zone database. Equivalent to std::chrono::get_tzdb().current_zone().
[edit] Exceptions
std::runtime_error if this is the first reference to the time zone database and the time zone database cannot be initialized.
[edit] Notes
A call to this function that is the first reference to the time zone database will cause it to be initialized.
[edit] Example
Possible output:
2021-09-13 19:46:42.249182012 MAGT