Le 07/03/2012 03:42, H. S. Teoh a écrit :
On Tue, Mar 06, 2012 at 09:18:13PM -0500, Nick Sabalausky wrote:
[...]
But, I'm thinking this whole "dur vs duration" matter is stupid
anyway.  Seconds, hours, etc *are* durations. What the hell do we even
need the "dur" or "duration" for anyway?

I say fuck it: Let's just toss this into core.time (or std.datetime or
whatever) and be done:

alias dur!"years" years;
alias dur!"months" months;
alias dur!"weeks" weeks;
alias dur!"days" days;
alias dur!"hours" hours;
alias dur!"minutes" minutes;
alias dur!"seconds" seconds;
alias dur!"msecs" msecs;
alias dur!"usecs" usecs;
alias dur!"hnsecs" hnsecs;

+1.


+1 if it can be used as a property. Which require explicit modification of dur.

Reply via email to