Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

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

Syntax
public static class HelperDateTime

Methods

CompareWithoutSeconds(DateTime, DateTime)

Declaration
public static int CompareWithoutSeconds(this DateTime d1, DateTime d2)
Parameters
TypeNameDescription
DateTimed1
DateTimed2
Returns
TypeDescription
int

GetInterval(string)

Declaration
public static TimeSpan GetInterval(string value)
Parameters
TypeNameDescription
stringvalue
Returns
TypeDescription
TimeSpan

GetIntervalFor(DateTime, string)

Declaration
public static TimeSpan GetIntervalFor(DateTime oldDateTime, string intervalString)
Parameters
TypeNameDescription
DateTimeoldDateTime
stringintervalString
Returns
TypeDescription
TimeSpan

GetInterval(DateTime, string)

Declaration
public static TimeSpan GetInterval(this DateTime dateTime, string intervalString)
Parameters
TypeNameDescription
DateTimedateTime
stringintervalString
Returns
TypeDescription
TimeSpan

AddIntervalFor(DateTime, string)

Declaration
public static DateTime AddIntervalFor(DateTime dateTime, string intervalString)
Parameters
TypeNameDescription
DateTimedateTime
stringintervalString
Returns
TypeDescription
DateTime

AddInterval(DateTime, string)

Declaration
public static DateTime AddInterval(this DateTime dateTime, string intervalString)
Parameters
TypeNameDescription
DateTimedateTime
stringintervalString
Returns
TypeDescription
DateTime

SubtractIntervalFor(DateTime, string)

Declaration
public static DateTime SubtractIntervalFor(DateTime dateTime, string intervalString)
Parameters
TypeNameDescription
DateTimedateTime
stringintervalString
Returns
TypeDescription
DateTime

SubtractInterval(DateTime, string)

Declaration
public static DateTime SubtractInterval(this DateTime dateTime, string intervalString)
Parameters
TypeNameDescription
DateTimedateTime
stringintervalString
Returns
TypeDescription
DateTime

Floor(TimeSpan)

Rounds the specified time span. Removes milliseconds and seconds.

Declaration
public static TimeSpan Floor(this TimeSpan timeSpan)
Parameters
TypeNameDescription
TimeSpantimeSpanSpecified timespan.
Returns
TypeDescription
TimeSpanRounded timespan.