XrmTimeSpan Structure
Updated: November 29, 2016
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Represents a time interval.
Assembly: Microsoft.Xrm.Sdk.Workflow (in Microsoft.Xrm.Sdk.Workflow.dll)
| Name | Description | |
|---|---|---|
![]() | XrmTimeSpan(Int32, Int32, Int32) | Initializes a new instance of the XrmTimeSpan class setting the days, hours and minutes. |
![]() | XrmTimeSpan(Int32, Int32, Int32, Int32, Int32) | Initializes a new instance of the XrmTimeSpan class setting the years, months, days, hours and minutes. |
![]() | XrmTimeSpan(TimeSpan) | Initializes a new instance of the CrmTimeSpan class setting the time span. |
| Name | Description | |
|---|---|---|
![]() | Days | Gets the number of whole days represented by the current XrmTimeSpan structure. |
![]() | Hours | Gets the number of whole hours represented by the current XrmTimeSpan structure. |
![]() | Minutes | Gets the number of whole minutes represented by the current XrmTimeSpan structure. |
![]() | Months | Gets the number of whole months represented by the current XrmTimeSpan structure. |
![]() | Years | Gets the number of whole years represented by the current XrmTimeSpan structure. |
| Name | Description | |
|---|---|---|
![]() | Add(DateTime) | Adds the specified date/time value to this instance. |
![]() ![]() | CreateXrmTimeSpan(Int32, Int32, Int32) | Creates an instance of a XrmTimeSpan class setting the days, hours and minutes. |
![]() ![]() | CreateXrmTimeSpan(Int32, Int32, Int32, Int32, Int32) | Creates an instance of a XrmTimeSpan class setting the years, months, days, hours and minutes. |
![]() ![]() | CreateXrmTimeSpan(XrmTimeSpan) | Creates an instance of a XrmTimeSpan class setting the time span members. |
![]() | Equals(Object) | Returns a value indicating whether this instance is equal to a specified object.(Overrides ValueType.Equals(Object).) |
![]() | Equals(XrmTimeSpan) | Returns a value indicating whether this instance is equal to a specified XrmTimeSpan object. |
![]() | GetHashCode() | Returns a hash code for this instance.(Overrides ValueType.GetHashCode().) |
![]() | GetType() | (Inherited from Object.) |
![]() | Subtract(DateTime) | Subtracts the specified XrmTimeSpan from this instance. |
![]() | ToString() | (Inherited from ValueType.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(XrmTimeSpan, XrmTimeSpan) | Indicates whether two XrmTimeSpan instances are equal. |
![]() ![]() | Inequality(XrmTimeSpan, XrmTimeSpan) | Indicates whether two XrmTimeSpan instances are not equal. |
This is similar to System.TimeSpan but with added support for month and year.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright




