>From "Ed Onken" <edonken at midwest.net>

>I think it should...  I just wonder what units should be allowed.  How about
>just seconds, minutes, hours, days, and weeks.  These are easy to define as
>containing so many seconds.  I usually hate the idea of figuring out what a
>month is and what a year is since these do not map easily back to a fixed
>number of days and therefore seconds.

Like I said, there is code that can handle most any unit or syntax you'd need, 
all it needs is porting (and localization; it's english-only ATM).  Takes a 
string, feeds you back the time in seconds-since-epoch, which could just be 
plugged in to the existing dbr calculations instead of the current time.  Most 
of the work is done by the yacc/bison grammar and some tables that won't need 
to be touched for the porting, which should keep bugs under control.

--
Benjamin Coates


_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to