[time.js] added time.Time.knowsPrecision and tests

Change-Id: I00f7ff9ca965ff25e96437f28d0fd3fa6e765c53