Anyone got a date math routine?
Jay R. Ashworth
jra at baylink.com
Mon Dec 3 12:58:08 PST 2007
Get the impression I'm coding this week...?
Before I write it myself, does anyone have a fuzzy age routine? I need
something that can take 2 dates and 2 times, and subtract one from the
other, and then round, so that what I get is "32m", "6h", "3d", "2w",
"4M", etc. That is, figure out what the largest unit of time is that
the difference can be represented in as a clipped integer, and return
that as a 3 character string.
I have a design for such a routine in my head, but I figure if anyone's
already plowed the ground...
If not, I'll post it here when I'm done with it.
Cheers,
-- jr 'why yes, I am writing a ticket tracking system :-)' a
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274
Witty slogan redacted until AMPTP stop screwing WGA
More information about the Filepro-list
mailing list