in reply to How to convert time in perl?

With cbro's hint, here's a function to do what you want:
sub pick2mmddyy { my ($day, $mo, $year) = (gmtime(($_[0]-732)*86400))[3,4,5]; return sprintf("%02d/%02d/%02d", $mo+1, $day, $year%100); } print pick2mmddyy(11982), "\n";

Replies are listed 'Best First'.
Re: Re: How to convert time in perl?
by cbro (Pilgrim) on Jun 05, 2003 at 14:04 UTC
      Perfect :) And thanks again for the help...

      Steve
      Yep, that's a fine function. You might even say I have an affinity for this type of transformation. (Obscure math puns.)