http://www.perlmonks.org?node_id=443379


in reply to Re: Converting localtime to SQL format
in thread Converting localtime to SQL format

You provide a good reason to rather use Posix::strftime(): Your solution is wrong since the month is zero-based and you forgot to increment the month.

  • Comment on Re^2: Converting localtime to SQL format

Replies are listed 'Best First'.
Re^3: Converting localtime to SQL format
by blazar (Canon) on Mar 30, 2005 at 09:04 UTC
    You provide a good reason to rather use Posix::strftime(): Your solution is wrong since the month is zero-based and you forgot to increment the month.
    Indeed. Mine was more of an example especially aimed at reminding of different contexts.