Hi All,

Can anyone tell me why these are not equivalent? Shouldn't strftime know
that the time returned from gmtime() is GMT? I'm trying to create a
library that'll use ht_time when $ENV{MOD_PERL} is true, ans strftime
otherwise. But they need to be consistent!

  use Apache::Util 'ht_time';
  my $t = ht_time;
  print "$t\n"; # prints "Mon, 16 Oct 2000 20:33:42 GMT"

  use POSIX 'strftime';
  my $a = strftime("%a, %d %b %Y %T %Z", gmtime);
  print "$a\n"; # prints  Mon, 16 Oct 2000 21:33:42 PDT

Thanks!

David

-- 
David E. Wheeler
Software Engineer
Salon Internet                                     ICQ:   15726394
[EMAIL PROTECTED]                                       AIM:   dwTheory

Reply via email to