Compare times: file modification time

Martin Tschierschke via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 2 06:44:41 PDT 2017


On Wednesday, 2 August 2017 at 13:32:46 UTC, Adam D. Ruppe wrote:
> On Wednesday, 2 August 2017 at 13:25:25 UTC, Martin 
> Tschierschke wrote:
>> I get a SysTime, how to check if it is older than an interval 
>> (1 day)?
>> D/Phobos idiomatically?
>
>    if(Clock.currTime - timeLastModified("aa.d") > 1.days) {
>           // older
>    }
Thank you Adam. So simple!



More information about the Digitalmars-d-learn mailing list