MCPcopy Create free account
hub / github.com/secdev/scapy / _time_to_int

Method _time_to_int

scapy/modules/ticketer.py:1617–1620  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

1615 return int((x - self._TIME_FIELD.delta) * 1e7)
1616
1617 def _time_to_int(self, x):
1618 return self._utc_to_mstime(
1619 datetime.strptime(x, self._TIME_FIELD.strf).timestamp()
1620 )
1621
1622 def _time_to_asn1(self, x):
1623 return ASN1_GENERALIZED_TIME(datetime.strptime(x, self._TIME_FIELD.strf))

Callers 2

_time_to_filetimeMethod · 0.95
edit_ticketMethod · 0.95

Calls 1

_utc_to_mstimeMethod · 0.95

Tested by

no test coverage detected