[time.js] added equals function for Time, and using it in DataValue now

Change-Id: If5e5990f6e32f69df145033311120e433b2dd36d
Merge "[time.js] added equals function for Time, and using it in DataValue now"