Is there some \"standard\" way or the best I can do is to compute it directly by subtracting from gregorian::date(1970,1,1)?
gregorian::date(1970,1,1)
I believe the best you can do is using to_tm to get a tm and mktime to convert the tm to a time_t.
tm
time_t