示例#1
0
 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;
 }
示例#2
0
文件: DNPTime.cs 项目: MPapst/dnp3
        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));
            }
        }
示例#3
0
文件: DNPTime.cs 项目: MPapst/dnp3
 public DNPTime(DateTime time, TimestampQuality quality)
 {
     this.value   = time;
     this.quality = quality;
 }