Added a function to calculate epoch since for any base, and used that for epoch_milli and epoch_micro