TimedValueHistory question


#1

When do we store milliseconds? I see that we store it for timestamps and in some cases TimedValueHistory, but in some cases, I do see the milliseconds stripped.
ex:
type TimedDateValue mixes TimedValue, DateTime

@db(compactType=true,
datastore=‘cassandra’,
partitionKeyField=‘parent’,
persistenceOrder=descending(‘timestamp’),
persistDuplicates=false,
shortId=true,
shortIdReservationRange=100000)
entity type DateHistory mixes TimedValueHistory, DateTime schema name ‘DH’

Type A {
@db(timedValueHistoryField=‘needByDateHistory’)
valueDate: TimedDateValue

dateHistory: DateHistory
}

var currentDate = DateTime.now();
var test = A.merge({});
DateHistory.merge({timestamp: currentDate, value: currentDate});

Now when I do a DateHistory.fetch(), I see the value field containing milliseconds.
However when I do a test.get(“valueDate.value”), I don’t see milliseconds in the returned value. Is this suppose to work this way?