import calendar


def DateTimeToTimestamp(value):
  """Returns an integer timestamp from a datetime.

  Args:
    value: The datetime to convert.

  Returns:
    An integer representing the number of seconds since the epoch.
  """
  return int(calendar.timegm(value.timetuple()))