def __splitTime(sec):
    """Splits a timestamp into hour, minute, and second components.

    :type  sec: int
    :param sec: timestamp as an epoch
    :rtype:  tuple
    :return: (hour, min, sec)
    """
    minute, sec = divmod(sec, 60)
    hour, minute = divmod(minute, 60)
    return hour, minute, sec