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

...Y-MM-DD' format. add a simple test case
Do we correctly reject "2000-01-01 00:00:00.1xyzzy" or do we incorrectly accept this as "2000-01-01 00:00:00.000001"?
Please test this error case.