Convert time to string to support schemata.

Change-Id: I95d6eec409a89a87c9967b85a7e93a133d9cfd03