MCPcopy
hub / github.com/django/django / _num_seconds

Method _num_seconds

django/contrib/auth/tokens.py:124–125  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

122 return f"{user.pk}{user.password}{login_timestamp}{timestamp}{email}"
123
124 def _num_seconds(self, dt):
125 return int((dt - datetime(2001, 1, 1)).total_seconds())
126
127 def _now(self):
128 # Used for mocking in tests

Callers 2

make_tokenMethod · 0.95
check_tokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected