Python: Implemented AddDays function.

This commit is contained in:
Don Cross
2019-06-22 21:35:48 -04:00
parent f29d44aa43
commit 2a97849af2
2 changed files with 6 additions and 0 deletions

View File

@@ -251,6 +251,9 @@ class astro_time_t:
self.ut = ut
self.tt = _TerrestrialTime(ut)
def AddDays(self, days):
return astro_time_t(self.ut + days)
_EPOCH = datetime.datetime(2000, 1, 1, 12)
def CurrentTime():