in reply to Re: Working with date
in thread Working with date

my sprintf'n prolly isn't the best, but it seems to work.

Since you are printing integers, you should really use %d rather than %f. That and an array slice clean it up nicely...

sprintf "%02d-%02d-%04d %02d:%02d:%02d", @bits[3,4,5,2,1,0];

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: Working with date
by edoc (Chaplain) on Jun 04, 2003 at 06:33 UTC

    ahh, much better! ++

    cheers,

    J