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.
In reply to Re^3: Converting localtime to SQL format
by blazar
in thread Converting localtime to SQL format
by Deib
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |