mainly in the interests of performance
If you are going to use $LocalTZ more than once then storing the DateTime::TimeZone object as a variable has a performance benefit. Conversely if you are going to use it only the once then there's likely to be a (very small) performance penalty.
In reply to Re^3: DateTime::Format::Strptime Parsing Seems to have a Problem?
by hippo
in thread DateTime::Format::Strptime Parsing Seems to have a Problem?
by ozboomer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |