localtime is an integer, just not a very human-readable one. Just use that -- print localtime -- sort by it, do compares with it, and re-interpret it into human-readable format when it needs to be read by humans...
--
Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.
M-J D
In reply to Re: time as number
by Cody Pendant
in thread time as number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |