def from_timestamp(seconds, tz_minutes=0):
    """convert seconds since the epoch to an UTC aware datetime"""
    tz = timezone(timedelta(minutes=tz_minutes)) if tz_minutes else timezone.utc
    return datetime.fromtimestamp(seconds, tz=tz)
convert seconds since the epoch to an UTC aware datetime
redbeat/decoder.py