Clock.currTime

Kent via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 20 07:33:37 PST 2014


On Thursday, 20 November 2014 at 15:31:28 UTC, bearophile wrote:
> Kent:
>
>> I am reading the book 《D Cookbook》
>> In Page 36,this code can't be complied:
>>
>> auto filtered =  filter!((a) => Clock.currTime() -
>> a.timeLastModified >> 14.days)(sorted);
>
> Perhaps:
>
> mySorted.filter!(a => Clock.currTime - a.timeLastModified > 
> 14.days);
>
> Bye,
> bearophile

Thank you for your reply.
But it still doesn't work.


More information about the Digitalmars-d-learn mailing list