ngs icon indicating copy to clipboard operation
ngs copied to clipboard

Duration type

Open ilyash-b opened this issue 5 years ago • 5 comments

ilyash-b avatar Oct 15 '19 10:10 ilyash-b

could elaborate more on this?

antonio-pedro99 avatar Oct 05 '22 18:10 antonio-pedro99

A data type for expressing difference between two points in time (Time objects)

ilyash-b avatar Oct 06 '22 17:10 ilyash-b

Maybe related to what's called Duration in other languages, needs checking

ilyash-b avatar Oct 06 '22 17:10 ilyash-b

something like this https://api.flutter.dev/flutter/dart-core/Duration-class.html ?

antonio-pedro99 avatar Oct 06 '22 22:10 antonio-pedro99

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.

ilyash-b avatar Oct 07 '22 03:10 ilyash-b

Already done

ilyash-b avatar Jan 12 '24 18:01 ilyash-b