Your solution requires localtime to return strings with specific arrangement of characters. If localtime returns a string based on the locale, your solution could break.
I don't know how to change locale to test.
In reply to Re^4: Using split, splice, and join to remove time from scalar context return of localtime()
by ikegami
in thread Using split, splice, and join to remove time from scalar context return of localtime()
by jffry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |