MCPcopy Index your code
hub / github.com/python/cpython / test_timestamp

Method test_timestamp

Lib/test/datetimetester.py:6452–6456  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6450
6451 @support.run_with_tz('EST+05EDT,M3.2.0,M11.1.0')
6452 def test_timestamp(self):
6453 dt0 = datetime(2014, 11, 2, 1, 30)
6454 dt1 = dt0.replace(fold=1)
6455 self.assertEqual(dt0.timestamp() + 3600,
6456 dt1.timestamp())
6457
6458 @support.run_with_tz('Australia/Lord_Howe')
6459 def test_timestamp_lord_howe(self):

Callers

nothing calls this directly

Calls 4

datetimeClass · 0.90
timestampMethod · 0.80
replaceMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected