[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: How to define an \<expire\> tag\?



Stefan `Sec` Zehl <sec@42.org> writes:

> maybe I'm completly nuts, but why should this break for leap-years ?
> you're comparing two dates created by the same mechanism. 
> As long as your constants aren't too small it should work, so i think
> if ( $ct[0]+100*$ct[1]*100*$ct[2] >= et[0]+100*$et[1]*1000*$et[2]){...
> would do it, too.

I guess you are correct. I was actually wondering if the "395" was a
design-choice, although 366 might have been more intuitive then ...

Cheers,
Fritz

-- 
Dr. Fritz Zaucker, Head IT Support Group
Department of Electrical Engineering,  Federal Institute of Technology
ETZ J97, Gloriastrasse 35, 8092 Zurich, Switzerland
Tel.: +41-1-632-5241 Fax: +41-1-632-1194 http://www.ee-staff.ethz.ch/~zaucker/
E-mail: zaucker@ee.ethz.ch (see home page for PGP key)
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com