added time compare function
Merge branch 'api-team' of https://github.com/bravenewprince/hackathon into api-team