On Tue, 17 Oct 2000, David E. Wheeler wrote:

> Matt Sergeant wrote:
> 
> > You should still switch to Time::Object. Loading POSIX.pm still loads in
> > the .so which contains loads of cruft for things you don't
> > want/need. Whereas loading Time::Object is a lot smaller. Of course I'm
> > not sure how you'd fix the isdst thing with Time::Object, since it does
> > strftime internally...
> 
> Perhaps you could add something like ht_time() has - it takes a third
> argument indicating whether the time passed is UTC. If it is, it uses
> gmtime internally, otherwise it uses localtime. And it looks like
> ht_time()'s implementation of gmtime() properly returns the time zone
> and doesn't add in DST stuff. Is that doable in Time::Object, or are you
> using Perl's gmtime() there?

Its doable - I could add in the code for ht_time almost verbatim, although
I *am* using Perl's gmtime.

-- 
<Matt/>

    /||    ** Director and CTO **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // **     Personal Web Site: http://sergeant.org/     **
     \\//
     //\\
    //  \\

Reply via email to