void VJSONValue::SetTime(const VTime& inTime) { _Dispose(); if (inTime.IsNull()) fType = JSON_null; else { fType = JSON_date; fTimeStamp = inTime.GetMilliseconds(); } }
VJSONValue::VJSONValue(const VTime& inTime) : fType(inTime.IsNull() ? JSON_null : JSON_date) { if (fType == JSON_date) fTimeStamp = inTime.GetMilliseconds(); }