use sscanf to extract info from a timestamp string. Now it supports 'YYY...

...Y-MM-DD' format. add a simple test case
I think that there is an EXPECT_EQUAL(a, b) or EXPECT_EQUALS(a, b) that gives a better error message than EXPECT_TRUE(a == b).