Access date and time types
mastercpptoml supports extended TOML v0.5.0 date/time formats:
local_date: Date only (e.g.,1980-08-02). Fields:year,month,day.local_time: Time only (e.g.,12:10:03.001). Fields:hour,minute,second,microsecond.local_datetime: Date and time without zone (e.g.,1980-08-02T12:10:03.001). Fields: all date and time fields.offset_datetime: Date, time, and timezone (e.g.,1980-08-02T12:10:03.001-07:00). Fields: all date/time fields plushour_offsetandminute_offset.
Use cpptoml::offset_datetime::from_zoned() and cpptoml::offset_datetime::from_utc() to convert struct tm objects to cpptoml::offset_datetime.