lib60870.NET  2.2.0
IEC 60870-5-101/104 Protocol Source Code Library for C#/.NET
lib60870.CP56Time2a Class Reference

Public Member Functions

 CP56Time2a (DateTime time)
 
DateTime GetDateTime (int startYear)
 Gets the date time. More...
 
DateTime GetDateTime ()
 
byte [] GetEncodedValue ()
 
override string ToString ()
 

Properties

int Millisecond [get, set]
 Gets or sets the millisecond part of the time value More...
 
int Second [get, set]
 Gets or sets the second (range 0 to 59) More...
 
int Minute [get, set]
 Gets or sets the minute (range 0 to 59) More...
 
int Hour [get, set]
 Gets or sets the hour (range 0 to 23) More...
 
int DayOfWeek [get, set]
 Gets or sets the day of week in range from 1 (Monday) until 7 (Sunday) More...
 
int DayOfMonth [get, set]
 Gets or sets the day of month in range 1 to 31. More...
 
int Month [get, set]
 Gets the month in range from 1 (January) to 12 (December) More...
 
int Year [get, set]
 Gets the year in the range 0 to 99 More...
 
bool SummerTime [get, set]
 
bool Invalid [get, set]
 Gets a value indicating whether this lib60870.CP56Time2a is invalid. More...
 
bool Substituted [get, set]
 Gets a value indicating whether this lib60870.CP26Time2a was substitued by an intermediate station More...
 

Member Function Documentation

◆ GetDateTime()

DateTime lib60870.CP56Time2a.GetDateTime ( int  startYear)

Gets the date time.

Returns
The date time.
Parameters
startYearStart year.

Property Documentation

◆ DayOfMonth

int lib60870.CP56Time2a.DayOfMonth
getset

Gets or sets the day of month in range 1 to 31.

The day of month.

◆ DayOfWeek

int lib60870.CP56Time2a.DayOfWeek
getset

Gets or sets the day of week in range from 1 (Monday) until 7 (Sunday)

The day of week.

◆ Hour

int lib60870.CP56Time2a.Hour
getset

Gets or sets the hour (range 0 to 23)

The hour.

◆ Invalid

bool lib60870.CP56Time2a.Invalid
getset

Gets a value indicating whether this lib60870.CP56Time2a is invalid.

true if invalid; otherwise, false.

◆ Millisecond

int lib60870.CP56Time2a.Millisecond
getset

Gets or sets the millisecond part of the time value

The millisecond.

◆ Minute

int lib60870.CP56Time2a.Minute
getset

Gets or sets the minute (range 0 to 59)

The minute.

◆ Month

int lib60870.CP56Time2a.Month
getset

Gets the month in range from 1 (January) to 12 (December)

The month.

◆ Second

int lib60870.CP56Time2a.Second
getset

Gets or sets the second (range 0 to 59)

The second.

◆ Substituted

bool lib60870.CP56Time2a.Substituted
getset

Gets a value indicating whether this lib60870.CP26Time2a was substitued by an intermediate station

true if substitued; otherwise, false.

◆ Year

int lib60870.CP56Time2a.Year
getset

Gets the year in the range 0 to 99

The year.


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