Exemple #1
0
 def test_conversion_2(self):
     calendar = ProlepticJulianCalendar()
     d = calendar.date(9999, 9, 19)
     converted = d.convert_to(JulianDayNumber())
     self.assertIsNotNone(converted)
     expected = DateWithCalendar(JulianDayNumber, vanilla_date(9999, 12, 1))
     self.assertEqual(converted, expected)
Exemple #2
0
 def test_conversion(self):
     calendar = ProlepticJulianCalendar()
     d = calendar.date(9999, 12, 1)
     converted = d.convert_to(JulianDayNumber())
     self.assertIsNotNone(converted)
     expected = DateWithCalendar(JulianDayNumber, DistantDate(10000, 2, 12))
     self.assertEqual(converted, expected)