public HeaderInfo(GroupVariation variation, QualifierCode qualifier, TimestampQuality tsquality, bool isEvent, bool flagsValid, UInt32 headerIndex) { this.variation = variation; this.qualifier = qualifier; this.tsquality = tsquality; this.isEvent = isEvent; this.flagsValid = flagsValid; this.headerIndex = headerIndex; }
public static DNPTime FromEpoch(Int64 epochTime, TimestampQuality quality) { var ms = TimeSpan.FromMilliseconds(epochTime); if (ms > DateTime.MaxValue - Epoch) { return(new DNPTime(DateTime.MaxValue, quality)); } else { return(new DNPTime(Epoch.Add(ms), quality)); } }
public DNPTime(DateTime time, TimestampQuality quality) { this.value = time; this.quality = quality; }