Make time comparison functions accept strings

This patch makes is_older_than() and is_newer_than() accept
timestamps in string format, as returned from strtime().

Change-Id: I1dbf453cc08bd8aaeb4fee2491a1e8aa74f8bee3
Merge "Make time comparison functions accept strings"