Clock.currTime

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 20 07:31:26 PST 2014


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


More information about the Digitalmars-d-learn mailing list