Class HelperDateTime
Inheritance
↳ object
↳ HelperDateTime
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Helpers
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic static class HelperDateTime
Methods
CompareWithoutSeconds(DateTime, DateTime)
Declarationpublic static int CompareWithoutSeconds(this DateTime d1, DateTime d2)
Type | Name | Description |
---|---|---|
DateTime | d1 | |
DateTime | d2 |
Type | Description |
---|---|
int |
GetInterval(string)
Declarationpublic static TimeSpan GetInterval(string value)
Type | Name | Description |
---|---|---|
string | value |
Type | Description |
---|---|
TimeSpan |
GetIntervalFor(DateTime, string)
Declarationpublic static TimeSpan GetIntervalFor(DateTime oldDateTime, string intervalString)
Type | Name | Description |
---|---|---|
DateTime | oldDateTime | |
string | intervalString |
Type | Description |
---|---|
TimeSpan |
GetInterval(DateTime, string)
Declarationpublic static TimeSpan GetInterval(this DateTime dateTime, string intervalString)
Type | Name | Description |
---|---|---|
DateTime | dateTime | |
string | intervalString |
Type | Description |
---|---|
TimeSpan |
AddIntervalFor(DateTime, string)
Declarationpublic static DateTime AddIntervalFor(DateTime dateTime, string intervalString)
Type | Name | Description |
---|---|---|
DateTime | dateTime | |
string | intervalString |
Type | Description |
---|---|
DateTime |
AddInterval(DateTime, string)
Declarationpublic static DateTime AddInterval(this DateTime dateTime, string intervalString)
Type | Name | Description |
---|---|---|
DateTime | dateTime | |
string | intervalString |
Type | Description |
---|---|
DateTime |
SubtractIntervalFor(DateTime, string)
Declarationpublic static DateTime SubtractIntervalFor(DateTime dateTime, string intervalString)
Type | Name | Description |
---|---|---|
DateTime | dateTime | |
string | intervalString |
Type | Description |
---|---|
DateTime |
SubtractInterval(DateTime, string)
Declarationpublic static DateTime SubtractInterval(this DateTime dateTime, string intervalString)
Type | Name | Description |
---|---|---|
DateTime | dateTime | |
string | intervalString |
Type | Description |
---|---|
DateTime |
Floor(TimeSpan)
Rounds the specified time span. Removes milliseconds and seconds.
Declarationpublic static TimeSpan Floor(this TimeSpan timeSpan)
Type | Name | Description |
---|---|---|
TimeSpan | timeSpan | Specified timespan. |
Type | Description |
---|---|
TimeSpan | Rounded timespan. |