Class DateFactory
Factory to convert DateTime instances into TPDate variants.
Inheritance
System.Object
DateFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Telematic.FleetBoard
Assembly: Simplic.Telematic.FleetBoard.dll
Syntax
public static class DateFactory
Methods
| Improve this Doc View SourceCreatePosDate(Nullable<DateTime>, Nullable<DateTime>)
Creates a TPDate instance for use with the PosService.
Declaration
public static TPDate CreatePosDate(DateTime? begin, DateTime? end)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | begin | The beginning date. |
System.Nullable<System.DateTime> | end | The ending date. |
Returns
Type | Description |
---|---|
TPDate | A TPDate |
CreateTmDate(Nullable<DateTime>, Nullable<DateTime>)
Creates a TPDate instance for use with the TransportManagementService.
Declaration
public static TPDate CreateTmDate(DateTime? begin, DateTime? end)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | begin | The beginning date. |
System.Nullable<System.DateTime> | end | The ending date. |
Returns
Type | Description |
---|---|
TPDate | A TPDate |
Parse(String)
Parses a server-formatted datetime.
Declaration
public static DateTime Parse(string dateTime)
Parameters
Type | Name | Description |
---|---|---|
System.String | dateTime |
Returns
Type | Description |
---|---|
System.DateTime |
ParsePeriodQueryLimit(IEnumerable<PropertyType>, String)
Gets the period query limit from the server properties.
Declaration
public static TimeSpan ParsePeriodQueryLimit(IEnumerable<PropertyType> properties, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<PropertyType> | properties | |
System.String | propertyName |
Returns
Type | Description |
---|---|
System.TimeSpan |