SplitScript reference / Migration / Text duration parsing
Text duration parsing
Migration from C#
Source pattern
Look for the C# concept Text duration parsing in the source. The semantic difference below is more important than a token-for-token rewrite.
Canonical SplitScript
Use the canonical language and API symbols linked below.
Semantic difference
Replace TimeSpan.Parse according to whether the input is fixed data or an already-typed timer value; do not preserve culture-sensitive parsing by default.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
Duration.fromSeconds (standard library)
-
Duration.fromMilliseconds (standard library)
-
Duration.fromParts (standard library)