converting to general epoch length