Why do you need a function that gives you the time stamp for a specific epoch (1900 or 1970)? Why can't you just used the default epoch of the the RTCZero library? If all calculations are done using timestamps based on the same epoch, won't it just work?