SplitScript reference / Migration / Timer durations
Timer durations
Migration from C#
Source pattern
-
C#:
TimeSpan -
C#:
TimeSpan -
C#:
Duration.Zero
Canonical SplitScript
-
TimeSpanbecomesDuration. -
TimeSpanbecomesDuration. -
Duration.ZerobecomesDuration.zero().
Use the canonical language and API symbols linked below.
Semantic difference
Use Duration instead of C#'s TimeSpan.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
- Duration (type)