in reply to Re: Converting a date to a string and back
in thread Converting a date to a string and back

> if you use a daemon, it will not work,

Fortunately, there's $^T to compensate:

$ touch 1 $ sleep 2 $ perl -wE ' say 24 * 60 * 60 * -M "1"; sleep 2; say time - $^T + 24 * 60 * 60 * -M "1"; ' 2 4

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^3: Converting a date to a string and back
by FreeBeerReekingMonk (Deacon) on Jul 15, 2016 at 14:08 UTC
    Thank you choroba, very insightful (you got my vote)... adding (time - $^T) to my snippets files...