> > Notice that the hours/mins are always padded but the rest isn't. > > I think you meant minutes/seconds. Yep, oops. Thanks. > if you're going to have an object interface, perhaps the constructor > can take the strftime string for use as the default scalar output? That's exactly what happens: $d = date time, '%H:%M'; # calls $d->setformat('%H:%M'); print "$d"; # prints "12:34" print $d->date; # so does this -Nate
- Re: RFC 48 (v2) Replace localtime() and gmtime() ... Nathan Wiger
- Re: RFC 48 (v2) Replace localtime() and gmtim... Russ Allbery
- Re: RFC 48 (v2) Replace localtime() and g... Tim Jenness
- Re: RFC 48 (v2) Replace localtime() and gmtim... Jonathan Scott Duff
- Re: RFC 48 (v2) Replace localtime() and gmtime() with ... Philip Newton
- Re: RFC 48 (v2) Replace localtime() and gmtime() ... iain truskett
- Re: RFC 48 (v2) Replace localtime() and gmtime() ... Nathan Wiger
- Re: RFC 48 (v2) Replace localtime() and gmtim... Philip Newton
- Re: RFC 48 (v2) Replace localtime() and g... iain truskett
- Re: RFC 48 (v2) Replace localtime() and gmtim... Bryan C . Warnock
- Re: RFC 48 (v2) Replace localtime() and g... Nathan Wiger
- Re: RFC 48 (v2) Replace localtime() and gmtime() with ... Jonathan Leffler
- Re: RFC 48 (v2) Replace localtime() and gmtime() with ... Tim Jenness
- Re: RFC 48 (v2) Replace localtime() and gmtime() ... Nathan Wiger
- Re: RFC 48 (v2) Replace localtime() and gmtim... Tim Jenness
- Re: RFC 48 (v2) Replace localtime() and gmtim... Philip Newton
- Re: RFC 48 (v2) Replace localtime() and gmtime() with ... Bart Lateur
- Re: RFC 48 (v2) Replace localtime() and gmtime() ... Jonathan Scott Duff
- Re: RFC 48 (v2) Replace localtime() and gmtim... Kai Henningsen