implemented getDateFromEpoch