Class Tools
Inheritance
System.Object
Tools
Namespace: DCR
Assembly: Engine.dll
Syntax
public class Tools : Object
Constructors
Tools()
Declaration
public Tools()
Methods
ConvertTimespan2ISO8601(String)
Converts an c# timespan string to an ISO8601 String.
Declaration
public static string ConvertTimespan2ISO8601(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | c# timespan string to convert |
Returns
Type | Description |
---|---|
System.String |
SubtractDates(String, String)
Subtracts date2 from date1 and returns the duration between as an ISO8601 string
Declaration
public static string SubtractDates(string date1, string date2)
Parameters
Type | Name | Description |
---|---|---|
System.String | date1 | ISO8601 string representation of date to be substracted from |
System.String | date2 | ISO8601 string representation of date to substract with |
Returns
Type | Description |
---|---|
System.String |