in reply to file test modifier -M and midnight rollover

-M always works relative to $^T. If you want to force a particular relative value, you can set $^T!
$^T -= $^T % 86400; # roll back to prior GMT midnight
Or, just use stat and get the absolute values without regard to the current time, and generate your own range info.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: file test modifier -M and midnight rollover
by trowa (Acolyte) on Mar 20, 2002 at 20:48 UTC
    Okay, thanks for the info. -M tied to $^T, interesting. And, BTW, thanks for the Schwartzian transform also...