Unix is used loosely with both Unix and Linux the assumption goes with date +%s "unix"...
unless the original post specified otherwise.
what you are claiming is a little irrelevant its off topic and doesn't help the opriginal poster solve their problem..
do you have a better answer.. ifact do you know what flavour of Unix the original poster is uisng.. since linux is basically unix.
try gawk "substrings" to compare strings as you would in C just put the whole value of the time stamp in a variable and compare using the awk string comparison command..(awk is basically a language not a command so it will do the job just as you want) you will have to look it up in the man pages or try http://www.sourceforge.net to get the exact command since I am little rusty on awk..
moxxx68