/// Set the dateString to the time as UTC time in the following format: /// 2002-08-26T19:21:32.000000Z void OsDateTimeBase::getIsoTimeStringZus(UtlString& dateString) { dateString.resize(27); sprintf(const_cast<char*>(dateString.data()), "%4d-%02d-%02dT%02d:%02d:%02d.%06dZ", mYear, mMonth+1, mDay, mHour, mMinute, mSecond, mMicrosecond ); }
/// Set the dateString to the time as UTC time in the following format: /// 2002-08-26T19:21:32.000Z void OsDateTimeBase::getIsoTimeStringZ(UtlString& dateString) { dateString.resize(24); sprintf(const_cast<char*>(dateString.data()), "%4d-%02d-%02dT%02d:%02d:%02d.%03dZ", mYear, mMonth+1, mDay, mHour, mMinute, mSecond, mMicrosecond/MICROSECS_PER_MILLISEC ); }