Nikola Tulechki wrote on 8/1/12 5:15 AM:
> Just a quick follow up concerning the "fixed width string" issue Peter was
> talking about. 
> 
> Note that if you work directly with unix timestamps (as I was), make sure all
> your dates are posterior to 09 sept 2001, (1000000000). Otherwise use Peter's
> solution (yyyymmdd - format)
> 

I would expect fixed-width with leading zeros to work too. E.g.:

 my $epoch_fixed = sprintf("%012d", $epoch);


-- 
Peter Karman  .  http://peknet.com/  .  [email protected]

Reply via email to