Compare times: file modification time

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 2 06:32:46 PDT 2017


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
    }



More information about the Digitalmars-d-learn mailing list