Update SpacePython to support timezone being specified in SpecificTime class
SpecificTime should allow providing time strings that have a timezone.
waitUntil() function should respect the timezone of the field provided.
waitUntil() is also being updated to work with SpecificTime or the underlying timedate type.
Line 49: Change to:
t = datetime.datetime.now(tz)
Line 51: Change to:
t.second, t.microsecond, tz)
Line 56 (added after Line 55):
May optionally end with a timezone indicator, such as Z.
Lines 62-68 replaced with:
t = datetime.datetime.fromisoformat(strval)
Line 70 replaced with:
t.second, t.microsecond, t.tzinfo)
Line 186 replaced with:
def waitUntil(specificTime:datetime.datetime) -> None: #Normative
Line 192 replaced with:
- use same timezone for now as the provided datetime
now = SpecificTime.now(specificTime.tzinfo)
Complete changes are in the attached patch file against the changes as a result of SOLM12-6.