Can we add metric prefix to dur function?
Andrea Fontana
nospam at example.org
Mon Jun 21 10:34:51 UTC 2021
Every time I use dur, I can't remember if it is "seconds"
"second" "sec" "millisecond" "milliseconds" "msec" "msecs" etc..
Can't we add the metric prefix as alternative?
For example:
1.dur!"s"
10.dur!"ms"
20.dur!"µs" <-- (altgr+m on my linux keyboard)
12.dur!"ns"
We should add also non-SI abbrevetion for other common accepted
units like:
1.dur!"m"
1.dur!"h"
1.dur!"w"
Andrea
More information about the Digitalmars-d
mailing list