Signatures of GuidedTrack operations🔗

This list is incomplete and not verified in detail.

Time + Time: Time, equal to the second summandTime + Date: Datetime, being a combination of the time and the dateTime + Datetime: Datetime, being a combination of the time and the date part of    the datetimeTime + Duration: TimeTime - Time: PureDuration<seconds>, being the distance between the two timesTime - Duration: TimeDate + Time: Datetime, being a combination of the date and the timeDate + Date: Date, equal to the second summandDate + Datetime: Datetime, being a combination of the date and the time part of    the datetimeDate + Duration: Date | Datetime. If the duration contains hours, minutes or    seconds, it is added to 00:00 on the given date and a Datetime results.    Otherwise a Date results.Date - Date: PureDuration<seconds>, being the absolute distance between 0:00 on    the given datesDate - Duration: Date | Datetime. If the duration contains hours, minutes or    seconds, it is subtracted from 00:00 on the given date and a Datetime    results. Otherwise a Date results.Datetime + Time: Datetime. Like Time + Datetime.Datetime + Date: Datetime. Like Date + Datetime.Datetime + Datetime: Datetime, equal to the second summandDatetime - Datetime: PureDuration<seconds>

The following uses PureDuration and Duration, PureDuration being a subset of Duration. This distinction doesn't exist in the code explicitly. But it makes the signatures more informative.

Example:

>> pure = t1 - t0pure.text -- "114 seconds">> mixed = 1.minute + 54.secondsmixed.text -- "1 minute, 54 seconds">> purified1 = mixed.to("seconds")purified1 -- "114 seconds">> purified2 = mixed.to("minutes")purified2 -- "1.9 minutes"

PureDurations are easier to deal with when you want to do calculations. The main use of non-pure durations is to have a more legible return value of .text. – "1 minute, 54 seconds" instead of "1.9 minutes".

Number.<U>: PureDuration<U>Duration.to(String = U): PureDuration<U>, where the number is rounded to two    places after the commaPureDuration<U>.text: String of format "<number> U"Duration.text: String of format "<number> <unit>, <number> <unit>, …" Duration + Duration: DurationPureDuration<U> + PureDuration<U>: PureDuration<U>Duration - Duration: DurationPureDuration<U> - PureDuration<U>: PureDuration<U>Duration * Number: DurationPureDuration * Number: PureDuration