def test_from_timestamp_with_tz(self): d = Date.from_timestamp(0, tz=eastern) self.assertEqual(d, Date(1969, 12, 31))
def test_from_timestamp_without_tz(self): d = Date.from_timestamp(0) self.assertEqual(d, Date(1970, 1, 1))
def test_from_timestamp_with_tz(self): d = Date.from_timestamp(0, tz=eastern) self.assertEqual(d, Date(1969, 12, 31))
def test_from_timestamp_without_tz(self): d = Date.from_timestamp(0) self.assertEqual(d, Date(1970, 1, 1))