NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Monitor.Server.TextCommand.TimeCommand Class Reference
Inheritance diagram for Ntp.Analyzer.Monitor.Server.TextCommand.TimeCommand:
Collaboration diagram for Ntp.Analyzer.Monitor.Server.TextCommand.TimeCommand:

Public Member Functions

 TimeCommand (string[] args)
 
- Public Member Functions inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
override object Execute ()
 

Protected Member Functions

override string ExecuteTextCommand ()
 
- Protected Member Functions inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
 MonitorTextCommand (string[] args)
 
 MonitorTextCommand ()
 

Additional Inherited Members

- Public Attributes inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
override CommandType CommandType => CommandType.Text
 
- Properties inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
string[] Args [get]
 
- Properties inherited from Ntp.Analyzer.Monitor.Server.Command
abstract CommandType CommandType [get]
 

Detailed Description

Definition at line 26 of file TimeCommand.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Monitor.Server.TextCommand.TimeCommand.TimeCommand ( string[]  args)
inline

Definition at line 28 of file TimeCommand.cs.

29  : base(args)
30  {
31  }

Member Function Documentation

override string Ntp.Analyzer.Monitor.Server.TextCommand.TimeCommand.ExecuteTextCommand ( )
inlineprotectedvirtual

Implements Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand.

Definition at line 33 of file TimeCommand.cs.

34  {
35  DateTime now = DateTime.Now.ToUniversalTime();
36 
37  return
38  "Server time is " +
39  now.ToLongDateString() +
40  " UTC " +
41  now.ToLongTimeString();
42  }

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