MCPcopy
hub / github.com/django/django / U

Method U

django/utils/dateformat.py:298–303  ·  view source on GitHub ↗

Seconds since the Unix epoch (January 1 1970 00:00:00 GMT)

(self)

Source from the content-addressed store, hash-verified

296 return calendar.monthrange(self.data.year, self.data.month)[1]
297
298 def U(self):
299 "Seconds since the Unix epoch (January 1 1970 00:00:00 GMT)"
300 value = self.data
301 if not isinstance(value, datetime):
302 value = datetime.combine(value, time.min)
303 return int(value.timestamp())
304
305 def w(self):
306 "Day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday)"

Callers

nothing calls this directly

Calls 2

combineMethod · 0.80
timestampMethod · 0.80

Tested by

no test coverage detected