CWS Wrapper Library  5.1.0
Properties | List of all members
CWSWrapper.CWSEvent Class Reference

Notification events emitted by CWS More...

Properties

string timeStamp [get, set]
 Timestamp in milliseconds since Jan 1, 1970 More...
 
string statusDetails [get, set]
 Details of the event More...
 

Detailed Description

Notification events emitted by CWS

Property Documentation

◆ statusDetails

string CWSWrapper.CWSEvent.statusDetails
getset

Details of the event

◆ timeStamp

string CWSWrapper.CWSEvent.timeStamp
getset

Timestamp in milliseconds since Jan 1, 1970

How to create a DateTime object from timeStamp

public static DateTime CWSStringToDateTime(String datelong)
{
return CWSLongToDateTime(long.Parse(datelong));
}
public static DateTime CWSLongToDateTime(long javaLong)
{
TimeSpan ss = TimeSpan.FromMilliseconds(javaLong);
DateTime Jan1st1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
DateTime ddd = Jan1st1970.Add(ss);
DateTime final = ddd.ToUniversalTime();
return final;
}

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