Given the date and time, how do you get the time in the era?
4 answers
Fill the tm structure with your values, then call std::mktime()
.
I assume that "get epoch time" means the number of seconds since epoch, ie Unix time_t.
+4
a source to share
This boost example should do what you are asking if I understood your problem correctly.
+1
a source to share