in reply to Operations with strftime
Strings do not work in subtraction.
Maybe consider reading time to find out what the function returns. After that, it should be trivial to find out how to get the time taken.
Update: ambrus found it for me - the most roundabout way to get an epoch timestamp would be
strftime( '%s', localtime( time ))
... but that's just identical to time().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Operations with strftime
by perlfan (Parson) on Jun 17, 2014 at 14:08 UTC |