added functions for converting epoch to timestamp