/// <summary> /// Serializes the C# model representation of date time into the corresponding JavaScript model representation. /// </summary> /// <param name="value">The C# representation of a <see cref="PrecisionDateTime"/> value</param> /// <returns>The corresponding JavaScript representation. Will be a <see cref="JsonValue"/> containing a string: "seconds since Jan 1 1904:fractional seconds" (both int64s).</returns> public static JsonValue SerializePrecisionDateTime(PrecisionDateTime value) { long valueSeconds; ulong fractionSeconds; value.ToLabViewTime(out valueSeconds, out fractionSeconds); return(SerializeString(valueSeconds + ":" + fractionSeconds)); }
public Sample(PrecisionDateTime dateTime, double value) { DateTime = dateTime; Value = value; }