ngs
ngs copied to clipboard
Duration type
could elaborate more on this?
A data type for expressing difference between two points in time (Time
objects)
Maybe related to what's called Duration
in other languages, needs checking
something like this https://api.flutter.dev/flutter/dart-core/Duration-class.html ?
something like this https://api.flutter.dev/flutter/dart-core/Duration-class.html ?
Looks about right. To gather more ideas please also take a look at
- https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html
- https://learn.microsoft.com/en-us/dotnet/api/system.timespan.duration?view=net-6.0
- https://api.rubyonrails.org/classes/ActiveSupport/Duration.html
(and preferably other places too)
Since it might be a bigger task, I recommend preparing a design first (list of types and methods). Then we review the design. Then you can implement it.
Already done