POSIX strftime will help with formatting a string from the localtime($secs) call without all the extra variables. All you need is to give it a format string and the localtime call. The strftime man page details the format string conventions available.
After Compline,
Zaxo
In reply to Re: Obtaining The Exact Time
by Zaxo
in thread Obtaining The Exact Time
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |