NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Objects.Reading Class Reference
Inheritance diagram for Ntp.Analyzer.Objects.Reading:
Collaboration diagram for Ntp.Analyzer.Objects.Reading:

Public Attributes

DateTime RoundedLocalTime
DateTime RoundedUtcTime

Protected Member Functions

 Reading (int id, DateTime time, int zone, Host host)
 Reading (Host host, ReadingBulk bulk)
- Protected Member Functions inherited from Ntp.Analyzer.Objects.PersistentObject
 PersistentObject (int id)
 Initializes a new instance of the PersistentObject class. More...
 PersistentObject ()
 Initializes a new instance of the PersistentObject class. More...


Host Host [get]
DateTime LocalTime [get]
DateTime Time [get]
int UtcOffset [get]
DateTime UtcTime [get]
- Properties inherited from Ntp.Analyzer.Objects.PersistentObject
int Id [get, private set]
 Gets the identifier. More...
bool NewObject [get, protected set]
 Gets a value indicating whether this PersistentObject is a new object which does not yet exists in the peristing storage (database etc). More...

Additional Inherited Members

- Public Member Functions inherited from Ntp.Analyzer.Objects.PersistentObject
override bool Equals (object obj)
override int GetHashCode ()
void SetId (int id)
 Sets the identifier after the object have been stored in persistent storage. More...
override string ToString ()
 Returns a string that represents the current PersistentObject. More...

Detailed Description

Definition at line 26 of file Reading.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Objects.Reading.Reading ( int  id,
DateTime  time,
int  zone,
Host  host 

Definition at line 28 of file Reading.cs.

33  : base(id)
34  {
35  var adjusted = new DateTime(
36  time.Year, time.Month, time.Day,
37  time.Hour, time.Minute, time.Second,
38  time.Millisecond,
39  DateTimeKind.Utc);
40  Time = adjusted.AddMinutes(zone);
41  Host = host;
42  }
Ntp.Analyzer.Objects.Reading.Reading ( Host  host,
ReadingBulk  bulk 

Definition at line 44 of file Reading.cs.

References Ntp.Analyzer.Objects.ReadingBulk.Time.

48  {
49  Time = bulk?.Time ?? DateTime.UtcNow;
50  Host = host;
51  }

Member Data Documentation

DateTime Ntp.Analyzer.Objects.Reading.RoundedLocalTime
Initial value:
=> new DateTime(
LocalTime.Year, LocalTime.Month, LocalTime.Day,
LocalTime.Hour, LocalTime.Minute, 0,

Definition at line 113 of file Reading.cs.

DateTime Ntp.Analyzer.Objects.Reading.RoundedUtcTime
Initial value:
=> new DateTime(
UtcTime.Year, UtcTime.Month, UtcTime.Day,
UtcTime.Hour, UtcTime.Minute, 0,

Definition at line 108 of file Reading.cs.

Property Documentation

DateTime Ntp.Analyzer.Objects.Reading.LocalTime

Definition at line 75 of file Reading.cs.

DateTime Ntp.Analyzer.Objects.Reading.UtcTime

Definition at line 58 of file Reading.cs.

The documentation for this class was generated from the following file: