>> This is a question from someone who doesn't grok C - can't they >> declare time_t as unsigned? In most applications, if used with care, this will work fine. Unfortunately time_t is used to hold two completely different kinds of quantities: A) Points in time: like "15 seconds after noon on December 12, 2012" B) Durations like "6 days, 2 hours, 27 minutes, 33 seconds" (expressed as a number of seconds). It is the latter use that can easily cause trouble. If an interval is expressed as 'end-start' the result is positive, but if it is represented as 'start-end' it becomes negative. --- Bob Ammerman RAm Systems -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist