Forum OpenACS Q&A: Re: how to subtract very large integers in tcl

Collapse
Posted by russ m on
are these actually plain integers, or are they datestamps? if they're datestamps then doing integer subtraction won't give you meaningful results... for example,

 20040101120000 (noon on Jan 1, 2004)
-20031231120000 (noon on Dec 31, 2003)
=    8870000000 (88 months and 70 days)

you need to treat them as dates if that's what they are...