[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapsearch in OL 2



On Fri, Aug 03, 2001 at 12:37:00PM +0200, Michael Ströder wrote:
> Peter W wrote:
> > 
> > So use a generic integer match. That's what we're doing. We've got a few
> > attributes in a custom schema for time values, and have opted to use the
> > Unix standard seconds-since-epoc instead of the LDAP standard.
> 
> How do you store a date before 1970-01-01? Off course you can argue
> that *your* applications don't need to do that.

Negative values.

  $ perl -e '$time = (-1 * 24 * 60 * 60); print "\nThe day before the 
    epoc began is \"".gmtime($time)."\"\n";'

  The day before the epoc began is "Wed Dec 31 00:00:00 1969"

-Peter