[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: It's time...



On Fri, May 07, 1999, John Bazik wrote:

> > Please let me know now if you want other features included in the
> > next release.
> 
> How about dropping the DST from WML_SRC_CTIME and WML_GEN_CTIME?
> 
> >From wml_frontend/wml.src:
> 
>  sub ctime {
>      my ($time) = @_;
> -  
> -    my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = 
> -        localtime($time);
> -    my ($str) = sprintf("%s %s %2d %02d:%02d:%02d 19%s%s",
> -         $dow[$wday], $moy[$mon], $mday, $hour, $min, $sec, $year, 
> -         $isdst ?  " DST" : "");
> -    return $str;
> +
> +    return scalar(localtime($time));
>  }
> 
> This would also fix the Y2K problem I see there...

Yeah, +1. This ctime() function I've written for very ancient Perl versions
and is not needed for any Perl 5 AFAIK.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com