A language built for fun
This project is maintained by cometlang
inherits Object
Represents a span of time, but not a point in time.
Duration([years], [months], [days], [hours], [minutes], [seconds], [milliseconds]) creates a duration representing the given time periods. If none of the time periods are given, a duration of 0 is created.to_string() returns a representation of the duration in nanoseconds with the ns unit appendedfrom_years(years) creates a duration representing the number of years givenfrom_months(months) creates a duration representing the number of months givenfrom_days(days) creates a duration representing the number of days givenfrom_hours(hours) creates a duration representing the number of hours givenfrom_minutes(minutes) creates a duration representing the number of minutes givenfrom_seconds(seconds) creates a duration representing the number of seconds givenfrom_milliseconds(milliseconds) creates a duration representing the number of milliseconds given+ adds either a datetime or a duration to the existing duration. The returned type is the same as the operand.