Function from_utc
Synopsis
#include <include/cpptoml.h>
static struct offset_datetime from_utc(const struct tm &t)
Description
No description yet.
Mentioned in
- Getting Started / Obtaining Basic Values
Source
Lines 152-162 in include/cpptoml.h. Line 146 in include/cpptoml.h.
static inline struct offset_datetime from_utc(const struct tm& t)
{
offset_datetime dt;
dt.year = t.tm_year + 1900;
dt.month = t.tm_mon + 1;
dt.day = t.tm_mday;
dt.hour = t.tm_hour;
dt.minute = t.tm_min;
dt.second = t.tm_sec;
return dt;
}