dxFeed .Net API  7.1.0
dxFeed .Net API library intended to provide market data access for DX clients
com.dxfeed.api.Tools Class Reference

Class provides some helpers for library. More...

Static Public Member Functions

static long DateToUnixTime (DateTime dateTime)
 Convert date time value to unix time (the number of milliseconds from 1.1.1970). More...
 
static DateTime UnixTimeToDate (double unixTimeStamp)
 Convert unix time to corresponding date time value. More...
 
static bool IsEquals (double double1, double double2)
 Compares two double values with some epsilon. More...
 
static void AddTls11PlusSupport ()
 Adds the TLS 1.1+ support if it necessary More...
 

Detailed Description

Class provides some helpers for library.

Member Function Documentation

◆ AddTls11PlusSupport()

static void com.dxfeed.api.Tools.AddTls11PlusSupport ( )
inlinestatic

Adds the TLS 1.1+ support if it necessary

◆ DateToUnixTime()

static long com.dxfeed.api.Tools.DateToUnixTime ( DateTime  dateTime)
inlinestatic

Convert date time value to unix time (the number of milliseconds from 1.1.1970).

Parameters
dateTimeDate time value to convert.
Returns
Unix time value of date time.
Exceptions
System.FormatException

◆ IsEquals()

static bool com.dxfeed.api.Tools.IsEquals ( double  double1,
double  double2 
)
inlinestatic

Compares two double values with some epsilon.

Parameters
double1First double to compare.
double2Second double to compare.
Returns
True if doubles are differs not greater than some epsilon, otherwise returns false.

◆ UnixTimeToDate()

static DateTime com.dxfeed.api.Tools.UnixTimeToDate ( double  unixTimeStamp)
inlinestatic

Convert unix time to corresponding date time value.

Parameters
unixTimeStampUnix time (the number of milliseconds from 1.1.1970).
Returns
Date time value of unix time stamp.
Exceptions
System.FormatException

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