-
Key: SOLM12-28
-
Status: closed
-
Source: Kratos RT Logic, Inc. ( Mr. Justin Boss)
-
Summary:
SpecificTime class should support providing a timezone and the waitUntil() function should support timezones that have a timezone.
-
Reported: SOLM 1.1 — Tue, 4 Feb 2025 21:32 GMT
-
Disposition: Resolved — SOLM 1.2b1
-
Disposition Summary:
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: #NormativeLine 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. - use same timezone for now as the provided datetime
-
Updated: Tue, 1 Jul 2025 15:03 GMT
-
Attachments:
- solm-issue-29.patch 3 kB ()
SOLM12 — SpacePython SpecificTime and waitUtil() has timezone issues
- Key: SOLM12-28
- OMG Task Force: Satellite Operations Language Metamodel (SOLM) 1.2 RTF