Convert each part of the date/time into an integer to populate a struct tm
, then convert that into a time_t
using mktime.
↧
Answer by Mark Ransom for how to convert datetime to unix timestamp in c?
↧
Convert each part of the date/time into an integer to populate a struct tm
, then convert that into a time_t
using mktime.