Skip to content

Migrate date/time handling from java.util.Calendar/Date to java.time.Instant - #27

Open
adamkorynta wants to merge 1 commit into
feature/method_reference_inflow_actionsfrom
feature/switch_to_instant
Open

Migrate date/time handling from java.util.Calendar/Date to java.time.Instant#27
adamkorynta wants to merge 1 commit into
feature/method_reference_inflow_actionsfrom
feature/switch_to_instant

Conversation

@adamkorynta

Copy link
Copy Markdown
Member
  • Add Instant overloads to ScriptableInflow, ScriptableGateSettings, and ScriptableGateFlowCalc (interfaces + impls), deprecating the existing Date/long overloads rather than removing them.
  • Migrate all district-scripts (SWF/SWL/SWT) and example scripts to build plain Python datetime objects with zoneinfo instead of java.util.Calendar/TimeZone
  • Document the migration pattern and the utc rule
  • Add test_datetime_instant_conversion.py

…Instant

- Add Instant overloads to ScriptableInflow, ScriptableGateSettings, and
ScriptableGateFlowCalc (interfaces + impls), deprecating the existing
Date/long overloads rather than removing them.
- Migrate all district-scripts (SWF/SWL/SWT) and example scripts to build
plain Python datetime objects with zoneinfo instead of
java.util.Calendar/TimeZone
- Document the migration pattern and the utc rule
- Add test_datetime_instant_conversion.py
@adamkorynta
adamkorynta force-pushed the feature/switch_to_instant branch from f7362f8 to 01b8c49 Compare August 21, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants