add the function epoch_to_date()

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>