Function Nextsim::mkgmtime¶
Function Documentation¶
-
std::time_t Nextsim::mkgmtime(std::tm *time, bool recalculateDoy = true)¶
converts the std::tm struct to a std::time_t value assuming UTC.
A UTC-fixed version of the standard library function mktime(). Calculates the duration between the Unix epoch and the given std::tm time and directly assigns that value.
- Parameters:
time – Pointer to the tm structure to interpret.
recalculateDoy – Flag argument for whether to calculate the day of the year from the year month and day values.