/// <summary> /// Adds a time field to the current active message. Please note that all times and dates are expressed in UTC. If <paramref name="nanosecond"/> is 1 – 999 the timstamp is encoded as "HH:MM:SS.mmm". If <paramref name="nanosecond"/> is set to 0 the timestamp is encoded as "HH:MM:SS". /// </summary> /// <param name="tag">The field tag.</param> /// <param name="hour">The hour.</param> /// <param name="minute">The minute.</param> /// <param name="second">The second.</param> /// <param name="nanosecond">The nanosecond.</param> /// <returns><see langword="true" /> if the field was successfully added, or <see langword="false" /> if the value could not be added (because there was no more memory, the message handle does not contain any messages, or the supplied value is not of the type specified).</returns> /// <exception cref="InvalidOperationException">The installed version of the native library doesn't include the mdf_message_add_time3 function.</exception> /// <exception cref="ObjectDisposedException">The <see cref="Message"/> instance has been disposed.</exception> /// <remarks>The corresponding native function is mdf_message_add_time3.</remarks> public bool AddTime3(uint tag, int hour, int minute, int second, int nanosecond) { ThrowIfDisposed(); return(_nativeImplementation.mdf_message_add_time3(Handle, tag, hour, minute, second, nanosecond) == 1); }