> > 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

Reply via email to