Enabling to specify time values in time output formats

(bug 48675) Time values can now be specified in the same formats that are used to
output values whose precision is greater than "year".

Change-Id: I370a3709cb28e2537f597dc69e74eb500163efd3