Can we add metric prefix to dur function?

Nicholas Wilson iamthewilsonator at hotmail.com
Tue Jun 22 10:34:03 UTC 2021


On Monday, 21 June 2021 at 10:34:51 UTC, Andrea Fontana wrote:
> 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?

Sure, open a PR against 
https://github.com/dlang/druntime/blob/master/src/core/time.d#L1880 and https://github.com/dlang/druntime/blob/master/src/core/time.d#L3416



More information about the Digitalmars-d mailing list