[phobos] datetime review

Simen Kjaeraas simen.kjaras at gmail.com
Sat Oct 9 15:22:07 PDT 2010


Andrei Alexandrescu <andrei at erdani.com> wrote:
>> assert( convert!years( months( 24 ) ) == 2 );
>
> This would be the case if we go with separate types for duration units  
> (years, months,...), but not if we use long throughout.

Or if months() is a function returning the appropriate long.

-- 
Simen


More information about the phobos mailing list