code: def __dt_to_epoch(dt):
          
          # Assume UTC if no datetime is provided.
          if dt.tzinfo is None:
              dt = dt.replace(tzinfo=pytz.utc)
          epoch_start = Datetime(*MayaDT.__EPOCH_START, tzinfo=pytz.timezone('UTC'))
          return (dt - epoch_start).total_seconds()
docs: Converts a datetime into an epoch.