[cvs] bogofilter common.h,1.28,1.29

Matthias Andree matthias.andree at gmx.de
Sun Dec 15 22:58:47 CET 2002


On Sun, 15 Dec 2002, David Relson wrote:

> At 04:23 PM 12/15/02, Matthias Andree wrote:
> 
> >David Relson <relson at osagesoftware.com> writes:
> >
> >>>Please do not put up artificial restrictions (one year
> >>>wraparound). Let's just use time_t and that's all.
> >>
> >> Using time_t could be done, but makes the values not readable by humans.
> >> I'd like to retain human readability.
> >
> >The design is unsuitable the way it is now. Don't store human-readable
> >formats, but machine-readable formats. Let the user interface deal with
> >the interpretation and presentation in the human-readable formats.
> 
> 
> How about days since Jan 1 2000?

Better, but I'm not too comfortable with that now. Someone might want
hour precision, someone else minute precision. There are ready-made
functions to present or parse dates to/from time_t, you'll have to bring
your own for "days since 2000-01-01".

-- 
Matthias Andree




More information about the bogofilter-dev mailing list