in reply to Using split, splice, and join to remove time from scalar context return of localtime()
How about:
[0] Perl> $now = substr localtime(), 11, 8;; [0] Perl> print $now;; 21:59:52
Should be way faster than either of the other methods. It's method a in these results:
Rate b c a b 121/s -- -37% -70% c 191/s 58% -- -53% a 405/s 235% 112% --
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using split, splice, and join to remove time from scalar context return of localtime()
by ikegami (Patriarch) on Dec 17, 2009 at 22:34 UTC | |
by BrowserUk (Patriarch) on Dec 18, 2009 at 00:33 UTC | |
by ikegami (Patriarch) on Dec 18, 2009 at 00:56 UTC | |
by BrowserUk (Patriarch) on Dec 18, 2009 at 05:43 UTC | |
by ikegami (Patriarch) on Dec 18, 2009 at 07:57 UTC | |
|