Divooka Reference

Date Time Routines

138 nodes

On this page 138

Add

Function

Overload 1 of 4

Signature
Add(value: Date & Time, delta: TimeSpan) -> Date & Time
DateTime Add(DateTime value, TimeSpan delta)

Adds a duration to a DateTime.

Parameters

nametypedefaultdescription
valueDate & Time—
deltaTimeSpan—

Returns

resultDate & Time

Overload 2 of 4

Signature
Add(value: TimeOnly, delta: TimeSpan) -> TimeOnly
TimeOnly Add(TimeOnly value, TimeSpan delta)

Adds a duration to a TimeOnly.

Parameters

nametypedefaultdescription
valueTimeOnly—
deltaTimeSpan—

Returns

resultTimeOnly

Overload 3 of 4

Signature
Add -> (result: TimeOnly, wrappedDays: Integer)
    value: TimeOnly
    delta: TimeSpan
TimeOnly Add(
    TimeOnly value,
    TimeSpan delta,
    out int wrappedDays)

Adds a duration to a time of day, wrapping around midnight, and reports how many days the clock wrapped.

Parameters

nametypedefaultdescription
valueTimeOnly—The starting time of day.
deltaTimeSpan—The duration to add; negative moves back.

Returns

resultTimeOnly
wrappedDaysInteger

Overload 4 of 4

Signature
Add(left: TimeSpan, right: TimeSpan) -> TimeSpan
TimeSpan Add(TimeSpan left, TimeSpan right)

Adds two TimeSpan values.

Parameters

nametypedefaultdescription
leftTimeSpan—
rightTimeSpan—

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Days

Function

Overload 1 of 2

Signature
AddDays(value: Date & Time, days: Number) -> Date & Time
DateTime AddDays(DateTime value, double days)

Moves a date and time forward or back by a number of days, which may be fractional (0.5 is twelve hours).

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
daysNumber—The number of days to add; negative moves back.

Returns

resultDate & Time

Overload 2 of 2

Signature
AddDays(value: DateOnly, days: Integer) -> DateOnly
DateOnly AddDays(DateOnly value, int days)

Adds days to a DateOnly.

Parameters

nametypedefaultdescription
valueDateOnly—
daysInteger—

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Hours

Function

Overload 1 of 3

Signature
AddHours(value: Date & Time, hours: Number) -> Date & Time
DateTime AddHours(DateTime value, double hours)

Moves a date and time forward or back by a number of hours, which may be fractional.

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
hoursNumber—The number of hours to add; negative moves back.

Returns

resultDate & Time

Overload 2 of 3

Signature
AddHours(value: TimeOnly, hours: Number) -> TimeOnly
TimeOnly AddHours(TimeOnly value, double hours)

Moves a time of day forward or back by a number of hours, wrapping around midnight (22:00 plus 3 hours is 01:00).

Parameters

nametypedefaultdescription
valueTimeOnly—The starting time of day.
hoursNumber—The number of hours to add, which may be fractional or negative.

Returns

resultTimeOnly

Overload 3 of 3

Signature
AddHours -> (result: TimeOnly, wrappedDays: Integer)
    value: TimeOnly
    hours: Number
TimeOnly AddHours(
    TimeOnly value,
    double hours,
    out int wrappedDays)

Moves a time of day forward or back by a number of hours, wrapping around midnight, and reports how many days the clock wrapped.

Parameters

nametypedefaultdescription
valueTimeOnly—The starting time of day.
hoursNumber—The number of hours to add, which may be fractional or negative.

Returns

resultTimeOnly
wrappedDaysInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Microseconds

Function

Moves a date and time forward or back by a number of microseconds, which may be fractional.

Signature
AddMicroseconds -> Date & Time
    value: Date & Time
    microseconds: Number
DateTime AddMicroseconds(DateTime value, double microseconds)

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
microsecondsNumber—The number of microseconds to add; negative moves back.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Milliseconds

Function

Moves a date and time forward or back by a number of milliseconds, which may be fractional.

Signature
AddMilliseconds -> Date & Time
    value: Date & Time
    milliseconds: Number
DateTime AddMilliseconds(DateTime value, double milliseconds)

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
millisecondsNumber—The number of milliseconds to add; negative moves back.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Minutes

Function

Overload 1 of 3

Signature
AddMinutes(value: Date & Time, minutes: Number) -> Date & Time
DateTime AddMinutes(DateTime value, double minutes)

Moves a date and time forward or back by a number of minutes, which may be fractional.

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
minutesNumber—The number of minutes to add; negative moves back.

Returns

resultDate & Time

Overload 2 of 3

Signature
AddMinutes(value: TimeOnly, minutes: Number) -> TimeOnly
TimeOnly AddMinutes(TimeOnly value, double minutes)

Moves a time of day forward or back by a number of minutes, wrapping around midnight.

Parameters

nametypedefaultdescription
valueTimeOnly—The starting time of day.
minutesNumber—The number of minutes to add, which may be fractional or negative.

Returns

resultTimeOnly

Overload 3 of 3

Signature
AddMinutes -> (result: TimeOnly, wrappedDays: Integer)
    value: TimeOnly
    minutes: Number
TimeOnly AddMinutes(
    TimeOnly value,
    double minutes,
    out int wrappedDays)

Moves a time of day forward or back by a number of minutes, wrapping around midnight, and reports how many days the clock wrapped.

Parameters

nametypedefaultdescription
valueTimeOnly—The starting time of day.
minutesNumber—The number of minutes to add, which may be fractional or negative.

Returns

resultTimeOnly
wrappedDaysInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Months

Function

Overload 1 of 2

Signature
AddMonths(value: Date & Time, months: Integer) -> Date & Time
DateTime AddMonths(DateTime value, int months)

Moves a date and time forward or back by whole calendar months, keeping the time of day.

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
monthsInteger—The number of months to add, from -120000 to 120000; negative moves back.

Returns

resultDate & Time

Remarks

If the day does not exist in the target month it is clamped to that month's last day, so January 31 plus one month is February 28 (or 29 in a leap year).

Overload 2 of 2

Signature
AddMonths(value: DateOnly, months: Integer) -> DateOnly
DateOnly AddMonths(DateOnly value, int months)

Moves a date forward or back by whole calendar months.

Parameters

nametypedefaultdescription
valueDateOnly—The starting date.
monthsInteger—The number of months to add; negative moves back.

Returns

resultDateOnly

Remarks

If the day does not exist in the target month it is clamped to that month's last day, so January 31 plus one month is February 28 (or 29 in a leap year).

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Seconds

Function

Moves a date and time forward or back by a number of seconds, which may be fractional.

Signature
AddSeconds(value: Date & Time, seconds: Number) -> Date & Time
DateTime AddSeconds(DateTime value, double seconds)

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
secondsNumber—The number of seconds to add; negative moves back.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Ticks

Function

Moves a date and time forward or back by a number of ticks, where one tick is 100 nanoseconds.

Signature
AddTicks -> Date & Time
    value: Date & Time
    ticks: Large Integer
DateTime AddTicks(DateTime value, long ticks)

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
ticksLarge Integer—The number of ticks to add; negative moves back.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Add Years

Function

Overload 1 of 2

Signature
AddYears(value: Date & Time, years: Integer) -> Date & Time
DateTime AddYears(DateTime value, int years)

Moves a date and time forward or back by whole calendar years, keeping the month, day and time of day.

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
yearsInteger—The number of years to add; negative moves back.

Returns

resultDate & Time

Remarks

February 29 moved to a year that is not a leap year becomes February 28.

Overload 2 of 2

Signature
AddYears(value: DateOnly, years: Integer) -> DateOnly
DateOnly AddYears(DateOnly value, int years)

Moves a date forward or back by whole calendar years, keeping the month and day.

Parameters

nametypedefaultdescription
valueDateOnly—The starting date.
yearsInteger—The number of years to add; negative moves back.

Returns

resultDateOnly

Remarks

February 29 moved to a year that is not a leap year becomes February 28.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Compare

Function

Overload 1 of 4

Signature
Compare(left: Date & Time, right: Date & Time) -> Integer
int Compare(DateTime left, DateTime right)

Compares two DateTime values.

Parameters

nametypedefaultdescription
leftDate & Time—
rightDate & Time—

Returns

resultInteger

Remarks

The comparison uses the underlying tick values and does not convert values based on DateTime.Kind.
To compare actual points in time, convert both values to UTC first.

Overload 2 of 4

Signature
Compare(left: DateOnly, right: DateOnly) -> Integer
int Compare(DateOnly left, DateOnly right)

Compares two DateOnly values.

Parameters

nametypedefaultdescription
leftDateOnly—
rightDateOnly—

Returns

resultInteger

Overload 3 of 4

Signature
Compare(left: TimeOnly, right: TimeOnly) -> Integer
int Compare(TimeOnly left, TimeOnly right)

Compares two TimeOnly values.

Parameters

nametypedefaultdescription
leftTimeOnly—
rightTimeOnly—

Returns

resultInteger

Overload 4 of 4

Signature
Compare(left: TimeSpan, right: TimeSpan) -> Integer
int Compare(TimeSpan left, TimeSpan right)

Compares two TimeSpan values.

Parameters

nametypedefaultdescription
leftTimeSpan—
rightTimeSpan—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Create

Function

Overload 1 of 8

Signature
Create(ticks: Large Integer) -> Date & Time
DateTime Create(long ticks)

Creates a DateTime from ticks.

Parameters

nametypedefaultdescription
ticksLarge Integer—

Returns

resultDate & Time

Overload 2 of 8

Signature
Create(ticks: Large Integer, kind: DateTimeKind) -> Date & Time
DateTime Create(long ticks, DateTimeKind kind)

Creates a System.DateTime from a tick count and marks it as local, UTC or unspecified.

Parameters

nametypedefaultdescription
ticksLarge Integer—The number of 100-nanosecond ticks since 0001-01-01 00:00:00; must be between 0 and the ticks of DateTime.MaxValue, otherwise an System.ArgumentOutOfRangeException is thrown.
kindDateTimeKind—Whether the value is local time, UTC or unspecified.

Returns

resultDate & Time

Overload 3 of 8

Signature
Create -> Date & Time
    year: Integer
    month: Integer
    day: Integer
DateTime Create(int year, int month, int day)

Creates a System.DateTime at midnight on the given calendar date.

Parameters

nametypedefaultdescription
yearInteger—The year, from 1 to 9999.
monthInteger—The month, from 1 to 12.
dayInteger—The day of the month, from 1 to the number of days in that month.

Returns

resultDate & Time

Overload 4 of 8

Signature
Create -> Date & Time
    year: Integer
    month: Integer
    day: Integer
    hour: Integer
    minute: Integer
    second: Integer
DateTime Create(
    int year,
    int month,
    int day,
    int hour,
    int minute,
    int second)

Creates a System.DateTime from a calendar date and a time of day to the second.

Parameters

nametypedefaultdescription
yearInteger—The year, from 1 to 9999.
monthInteger—The month, from 1 to 12.
dayInteger—The day of the month, from 1 to the number of days in that month.
hourInteger—The hour, from 0 to 23.
minuteInteger—The minute, from 0 to 59.
secondInteger—The second, from 0 to 59.

Returns

resultDate & Time

Overload 5 of 8

Signature
Create -> Date & Time
    year: Integer
    month: Integer
    day: Integer
    hour: Integer
    minute: Integer
    second: Integer
    kind: DateTimeKind
DateTime Create(
    int year,
    int month,
    int day,
    int hour,
    int minute,
    int second,
    DateTimeKind kind)

Creates a System.DateTime from a calendar date and a time of day to the second, marked as local, UTC or unspecified.

Parameters

nametypedefaultdescription
yearInteger—The year, from 1 to 9999.
monthInteger—The month, from 1 to 12.
dayInteger—The day of the month, from 1 to the number of days in that month.
hourInteger—The hour, from 0 to 23.
minuteInteger—The minute, from 0 to 59.
secondInteger—The second, from 0 to 59.
kindDateTimeKind—Whether the value is local time, UTC or unspecified.

Returns

resultDate & Time

Overload 6 of 8

Signature
Create -> Date & Time
    year: Integer
    month: Integer
    day: Integer
    hour: Integer
    minute: Integer
    second: Integer
    millisecond: Integer
DateTime Create(
    int year,
    int month,
    int day,
    int hour,
    int minute,
    int second,
    int millisecond)

Creates a System.DateTime from a calendar date and a time of day to the millisecond.

Parameters

nametypedefaultdescription
yearInteger—The year, from 1 to 9999.
monthInteger—The month, from 1 to 12.
dayInteger—The day of the month, from 1 to the number of days in that month.
hourInteger—The hour, from 0 to 23.
minuteInteger—The minute, from 0 to 59.
secondInteger—The second, from 0 to 59.
millisecondInteger—The millisecond, from 0 to 999.

Returns

resultDate & Time

Overload 7 of 8

Signature
Create -> Date & Time
    year: Integer
    month: Integer
    day: Integer
    hour: Integer
    minute: Integer
    second: Integer
    millisecond: Integer
    kind: DateTimeKind
DateTime Create(
    int year,
    int month,
    int day,
    int hour,
    int minute,
    int second,
    int millisecond,
    DateTimeKind kind)

Creates a System.DateTime from a calendar date and a time of day to the millisecond, marked as local, UTC or unspecified.

Parameters

nametypedefaultdescription
yearInteger—The year, from 1 to 9999.
monthInteger—The month, from 1 to 12.
dayInteger—The day of the month, from 1 to the number of days in that month.
hourInteger—The hour, from 0 to 23.
minuteInteger—The minute, from 0 to 59.
secondInteger—The second, from 0 to 59.
millisecondInteger—The millisecond, from 0 to 999.
kindDateTimeKind—Whether the value is local time, UTC or unspecified.

Returns

resultDate & Time

Overload 8 of 8

Signature
Create -> Date & Time
    year: Integer
    month: Integer
    day: Integer
    hour: Integer
    minute: Integer
    second: Integer
    millisecond: Integer
    microsecond: Integer
    kind: DateTimeKind
DateTime Create(
    int year,
    int month,
    int day,
    int hour,
    int minute,
    int second,
    int millisecond,
    int microsecond,
    DateTimeKind kind = DateTimeKind.Unspecified)

Creates a System.DateTime from a calendar date and a time of day to the microsecond, optionally marked as local or UTC.

Parameters

nametypedefaultdescription
yearInteger—The year, from 1 to 9999.
monthInteger—The month, from 1 to 12.
dayInteger—The day of the month, from 1 to the number of days in that month.
hourInteger—The hour, from 0 to 23.
minuteInteger—The minute, from 0 to 59.
secondInteger—The second, from 0 to 59.
millisecondInteger—The millisecond, from 0 to 999.
microsecondInteger—The microsecond, from 0 to 999.
kindDateTimeKindUnspecifiedWhether the value is local time, UTC or unspecified; unspecified when left out.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Create Date Only

Function

Overload 1 of 2

Signature
CreateDateOnly -> DateOnly
    year: Integer
    month: Integer
    day: Integer
DateOnly CreateDateOnly(int year, int month, int day)

Creates a DateOnly from year, month and day.

Parameters

nametypedefaultdescription
yearInteger—
monthInteger—
dayInteger—

Returns

resultDateOnly

Overload 2 of 2

Signature
CreateDateOnly -> DateOnly
    year: Integer
    month: Integer
    day: Integer
    calendar: Calendar
DateOnly CreateDateOnly(
    int year,
    int month,
    int day,
    Calendar calendar)

Creates a System.DateOnly from a year, month and day counted in another calendar, such as the Hebrew or Japanese calendar.

Parameters

nametypedefaultdescription
yearInteger—The year in Calendar.
monthInteger—The month in Calendar.
dayInteger—The day of the month in Calendar.
calendarCalendar—The calendar the year, month and day are expressed in; must not be null.

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Create Time Only

Function

Overload 1 of 4

Signature
CreateTimeOnly(hour: Integer, minute: Integer) -> TimeOnly
TimeOnly CreateTimeOnly(int hour, int minute)

Creates a TimeOnly from hour and minute.

Parameters

nametypedefaultdescription
hourInteger—
minuteInteger—

Returns

resultTimeOnly

Overload 2 of 4

Signature
CreateTimeOnly -> TimeOnly
    hour: Integer
    minute: Integer
    second: Integer
TimeOnly CreateTimeOnly(int hour, int minute, int second)

Creates a System.TimeOnly time of day from an hour, minute and second.

Parameters

nametypedefaultdescription
hourInteger—The hour, from 0 to 23.
minuteInteger—The minute, from 0 to 59.
secondInteger—The second, from 0 to 59.

Returns

resultTimeOnly

Overload 3 of 4

Signature
CreateTimeOnly -> TimeOnly
    hour: Integer
    minute: Integer
    second: Integer
    millisecond: Integer
TimeOnly CreateTimeOnly(
    int hour,
    int minute,
    int second,
    int millisecond)

Creates a System.TimeOnly time of day from an hour, minute, second and millisecond.

Parameters

nametypedefaultdescription
hourInteger—The hour, from 0 to 23.
minuteInteger—The minute, from 0 to 59.
secondInteger—The second, from 0 to 59.
millisecondInteger—The millisecond, from 0 to 999.

Returns

resultTimeOnly

Overload 4 of 4

Signature
CreateTimeOnly -> TimeOnly
    hour: Integer
    minute: Integer
    second: Integer
    millisecond: Integer
    microsecond: Integer
TimeOnly CreateTimeOnly(
    int hour,
    int minute,
    int second,
    int millisecond,
    int microsecond)

Creates a System.TimeOnly time of day from an hour, minute, second, millisecond and microsecond.

Parameters

nametypedefaultdescription
hourInteger—The hour, from 0 to 23.
minuteInteger—The minute, from 0 to 59.
secondInteger—The second, from 0 to 59.
millisecondInteger—The millisecond, from 0 to 999.
microsecondInteger—The microsecond, from 0 to 999.

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Create Time Span

Function

Overload 1 of 5

Signature
CreateTimeSpan(ticks: Large Integer) -> TimeSpan
TimeSpan CreateTimeSpan(long ticks)

Creates a TimeSpan from ticks.

Parameters

nametypedefaultdescription
ticksLarge Integer—

Returns

resultTimeSpan

Overload 2 of 5

Signature
CreateTimeSpan -> TimeSpan
    hours: Integer
    minutes: Integer
    seconds: Integer
TimeSpan CreateTimeSpan(int hours, int minutes, int seconds)

Creates a System.TimeSpan duration from hours, minutes and seconds.

Parameters

nametypedefaultdescription
hoursInteger—The number of hours.
minutesInteger—The number of minutes.
secondsInteger—The number of seconds.

Returns

resultTimeSpan

Remarks

The parts are added together, so they may exceed their usual ranges or be negative: 0 hours, 90 minutes and 0 seconds is one and a half hours. An System.ArgumentOutOfRangeException is thrown if the total is beyond TimeSpan.MaxValue or TimeSpan.MinValue.

Overload 3 of 5

Signature
CreateTimeSpan -> TimeSpan
    days: Integer
    hours: Integer
    minutes: Integer
    seconds: Integer
TimeSpan CreateTimeSpan(
    int days,
    int hours,
    int minutes,
    int seconds)

Creates a System.TimeSpan duration from days, hours, minutes and seconds.

Parameters

nametypedefaultdescription
daysInteger—The number of days.
hoursInteger—The number of hours.
minutesInteger—The number of minutes.
secondsInteger—The number of seconds.

Returns

resultTimeSpan

Remarks

The parts are added together, so they may exceed their usual ranges or be negative. An System.ArgumentOutOfRangeException is thrown if the total is beyond TimeSpan.MaxValue or TimeSpan.MinValue.

Overload 4 of 5

Signature
CreateTimeSpan -> TimeSpan
    days: Integer
    hours: Integer
    minutes: Integer
    seconds: Integer
    milliseconds: Integer
TimeSpan CreateTimeSpan(
    int days,
    int hours,
    int minutes,
    int seconds,
    int milliseconds)

Creates a System.TimeSpan duration from days, hours, minutes, seconds and milliseconds.

Parameters

nametypedefaultdescription
daysInteger—The number of days.
hoursInteger—The number of hours.
minutesInteger—The number of minutes.
secondsInteger—The number of seconds.
millisecondsInteger—The number of milliseconds.

Returns

resultTimeSpan

Remarks

The parts are added together, so they may exceed their usual ranges or be negative. An System.ArgumentOutOfRangeException is thrown if the total is beyond TimeSpan.MaxValue or TimeSpan.MinValue.

Overload 5 of 5

Signature
CreateTimeSpan -> TimeSpan
    days: Integer
    hours: Integer
    minutes: Integer
    seconds: Integer
    milliseconds: Integer
    microseconds: Integer
TimeSpan CreateTimeSpan(
    int days,
    int hours,
    int minutes,
    int seconds,
    int milliseconds,
    int microseconds)

Creates a System.TimeSpan duration from days, hours, minutes, seconds, milliseconds and microseconds.

Parameters

nametypedefaultdescription
daysInteger—The number of days.
hoursInteger—The number of hours.
minutesInteger—The number of minutes.
secondsInteger—The number of seconds.
millisecondsInteger—The number of milliseconds.
microsecondsInteger—The number of microseconds.

Returns

resultTimeSpan

Remarks

The parts are added together, so they may exceed their usual ranges or be negative. An System.ArgumentOutOfRangeException is thrown if the total is beyond TimeSpan.MaxValue or TimeSpan.MinValue.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Date

Function

Gets the date component of a DateTime.

Signature
Date(value: Date & Time) -> Date & Time
DateTime Date(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Date Only From Date Time

Function

Takes the calendar date of a System.DateTime and drops its time of day.

Signature
DateOnlyFromDateTime(value: Date & Time) -> DateOnly
DateOnly DateOnlyFromDateTime(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to take the date from; its kind is ignored and no time-zone conversion is made.

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Date Only From Day Number

Function

Creates a System.DateOnly from a day number, the count of days since 0001-01-01 in the Gregorian calendar.

Signature
DateOnlyFromDayNumber(dayNumber: Integer) -> DateOnly
DateOnly DateOnlyFromDayNumber(int dayNumber)

Parameters

nametypedefaultdescription
dayNumberInteger—The number of days since 0001-01-01, from 0 (0001-01-01) to 3652058 (9999-12-31); any other value throws an System.ArgumentOutOfRangeException.

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Day

Function

Overload 1 of 2

Signature
Day(value: Date & Time) -> Integer
int Day(DateTime value)

Gets the day of the month of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Day(value: DateOnly) -> Integer
int Day(DateOnly value)

Gets the day of the month of a date.

Parameters

nametypedefaultdescription
valueDateOnly—The date.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Day Number

Function

Gets a date as a single day number, the count of days since 0001-01-01; subtracting two day numbers gives the days between them.

Signature
DayNumber(value: DateOnly) -> Integer
int DayNumber(DateOnly value)

Parameters

nametypedefaultdescription
valueDateOnly—The date.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Day Of Week

Function

Overload 1 of 2

Signature
DayOfWeek(value: Date & Time) -> DayOfWeek
DayOfWeek DayOfWeek(DateTime value)

Gets the weekday of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultDayOfWeek

Overload 2 of 2

Signature
DayOfWeek(value: DateOnly) -> DayOfWeek
DayOfWeek DayOfWeek(DateOnly value)

Gets the weekday of a date.

Parameters

nametypedefaultdescription
valueDateOnly—The date.

Returns

resultDayOfWeek
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Day Of Year

Function

Overload 1 of 2

Signature
DayOfYear(value: Date & Time) -> Integer
int DayOfYear(DateTime value)

Gets how far into its year a date and time falls, counted in days.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
DayOfYear(value: DateOnly) -> Integer
int DayOfYear(DateOnly value)

Gets how far into its year a date falls, counted in days.

Parameters

nametypedefaultdescription
valueDateOnly—The date.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Days

Function

Gets the day component of a TimeSpan.

Signature
Days(value: TimeSpan) -> Integer
int Days(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Days Between

Function

Counts the calendar days from one date to another.

Signature
DaysBetween(left: DateOnly, right: DateOnly) -> Integer
int DaysBetween(DateOnly left, DateOnly right)

Parameters

nametypedefaultdescription
leftDateOnly—The later date.
rightDateOnly—The earlier date.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Days In Month

Function

Gives the number of days in a month of a given year in the Gregorian calendar, taking leap years into account.

Signature
DaysInMonth(year: Integer, month: Integer) -> Integer
int DaysInMonth(int year, int month)

Parameters

nametypedefaultdescription
yearInteger—The year, from 1 to 9999.
monthInteger—The month, from 1 to 12; any other value throws an System.ArgumentOutOfRangeException.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Deconstruct

Function

Overload 1 of 5

Signature
Deconstruct(value: Date & Time) -> (year: Integer, month: Integer, day: Integer)
void Deconstruct(
    DateTime value,
    out int year,
    out int month,
    out int day)

Deconstructs a DateTime into year, month and day.

Parameters

nametypedefaultdescription
valueDate & Time—

Returns

yearInteger
monthInteger
dayInteger

Overload 2 of 5

Signature
Deconstruct(value: Date & Time) -> (date: DateOnly, time: TimeOnly)
void Deconstruct(
    DateTime value,
    out DateOnly date,
    out TimeOnly time)

Splits a date and time into its calendar date and its time of day.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to split; its kind is dropped and no time-zone conversion is made.

Returns

dateDateOnly
timeTimeOnly

Overload 3 of 5

Signature
Deconstruct(value: DateOnly) -> (year: Integer, month: Integer, day: Integer)
void Deconstruct(
    DateOnly value,
    out int year,
    out int month,
    out int day)

Splits a date into its year, month and day numbers.

Parameters

nametypedefaultdescription
valueDateOnly—The date to split.

Returns

yearInteger
monthInteger
dayInteger

Overload 4 of 5

Signature
Deconstruct(value: TimeOnly) -> (hour: Integer, minute: Integer, second: Integer)
void Deconstruct(
    TimeOnly value,
    out int hour,
    out int minute,
    out int second)

Splits a time of day into its hour, minute and second; fractions of a second are dropped.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day to split.

Returns

hourInteger
minuteInteger
secondInteger

Overload 5 of 5

Signature
Deconstruct(value: TimeSpan) -> (days: Integer, hours: Integer, minutes: Integer, seconds: Integer)
void Deconstruct(
    TimeSpan value,
    out int days,
    out int hours,
    out int minutes,
    out int seconds)

Splits a duration into its whole days, hours, minutes and seconds; fractions of a second are dropped, and every part is negative for a negative duration.

Parameters

nametypedefaultdescription
valueTimeSpan—The duration to split.

Returns

daysInteger
hoursInteger
minutesInteger
secondsInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Divide

Function

Overload 1 of 2

Signature
Divide(value: TimeSpan, divisor: Number) -> TimeSpan
TimeSpan Divide(TimeSpan value, double divisor)

Divides a duration by a number, for example to split it into equal parts.

Parameters

nametypedefaultdescription
valueTimeSpan—The duration to divide.
divisorNumber—The number to divide by; NaN throws an System.ArgumentException, and zero throws an System.OverflowException.

Returns

resultTimeSpan

Overload 2 of 2

Signature
Divide(left: TimeSpan, right: TimeSpan) -> Number
double Divide(TimeSpan left, TimeSpan right)

Gives the ratio of two durations, such as how many times one fits into another.

Parameters

nametypedefaultdescription
leftTimeSpan—The duration to divide.
rightTimeSpan—The duration to divide by; zero gives infinity, or NaN when Left is also zero, instead of an error.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Duration

Function

Gives the absolute length of a duration, dropping its sign.

Signature
Duration(value: TimeSpan) -> TimeSpan
TimeSpan Duration(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration; TimeSpan.MinValue throws an System.OverflowException because its absolute value does not fit.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Equals

Function

Overload 1 of 4

Signature
Equals(left: Date & Time, right: Date & Time) -> Truth
bool Equals(DateTime left, DateTime right)

Checks whether two date and time values are the same.

Parameters

nametypedefaultdescription
leftDate & Time—The first date and time.
rightDate & Time—The second date and time.

Returns

resultTruth

Remarks

Only the tick values are compared and DateTime.Kind is ignored, so a local and a UTC value with the same clock reading are equal. Convert both to UTC first to compare actual points in time.

Overload 2 of 4

Signature
Equals(left: DateOnly, right: DateOnly) -> Truth
bool Equals(DateOnly left, DateOnly right)

Checks whether two dates are the same day.

Parameters

nametypedefaultdescription
leftDateOnly—The first date.
rightDateOnly—The second date.

Returns

resultTruth

Overload 3 of 4

Signature
Equals(left: TimeOnly, right: TimeOnly) -> Truth
bool Equals(TimeOnly left, TimeOnly right)

Checks whether two times of day are the same, to the tick.

Parameters

nametypedefaultdescription
leftTimeOnly—The first time of day.
rightTimeOnly—The second time of day.

Returns

resultTruth

Overload 4 of 4

Signature
Equals(left: TimeSpan, right: TimeSpan) -> Truth
bool Equals(TimeSpan left, TimeSpan right)

Checks whether two durations are the same length, to the tick.

Parameters

nametypedefaultdescription
leftTimeSpan—The first duration.
rightTimeSpan—The second duration.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

From Binary

Function

Restores a date and time, including its kind, from a number made by DateTimeRoutines.ToBinary.

Signature
FromBinary(value: Large Integer) -> Date & Time
DateTime FromBinary(long value)

Parameters

nametypedefaultdescription
valueLarge Integer—The packed number; one that does not encode a valid date throws an System.ArgumentException.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

From Date Only Time Only

Function

Overload 1 of 2

Signature
FromDateOnlyTimeOnly -> Date & Time
    date: DateOnly
    time: TimeOnly
DateTime FromDateOnlyTimeOnly(DateOnly date, TimeOnly time)

Combines DateOnly and TimeOnly into a DateTime.

Parameters

nametypedefaultdescription
dateDateOnly—
timeTimeOnly—

Returns

resultDate & Time

Overload 2 of 2

Signature
FromDateOnlyTimeOnly -> Date & Time
    date: DateOnly
    time: TimeOnly
    kind: DateTimeKind
DateTime FromDateOnlyTimeOnly(
    DateOnly date,
    TimeOnly time,
    DateTimeKind kind)

Combines a System.DateOnly date and a System.TimeOnly time of day into one System.DateTime, marked as local, UTC or unspecified.

Parameters

nametypedefaultdescription
dateDateOnly—The calendar date.
timeTimeOnly—The time of day on that date.
kindDateTimeKind—Whether the result is local time, UTC or unspecified.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

From File Time

Function

Converts a Windows file time to a date and time in this computer's local time zone.

Signature
FromFileTime(value: Large Integer) -> Date & Time
DateTime FromFileTime(long value)

Parameters

nametypedefaultdescription
valueLarge Integer—The number of 100-nanosecond intervals since 1601-01-01 00:00:00 UTC; a negative or too-large value throws an System.ArgumentOutOfRangeException.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

From File Time Utc

Function

Converts a Windows file time to a UTC date and time.

Signature
FromFileTimeUtc(value: Large Integer) -> Date & Time
DateTime FromFileTimeUtc(long value)

Parameters

nametypedefaultdescription
valueLarge Integer—The number of 100-nanosecond intervals since 1601-01-01 00:00:00 UTC; a negative or too-large value throws an System.ArgumentOutOfRangeException.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

From OA Date

Function

Converts an OLE Automation date, the number format Excel and other Office applications use for dates, to a date and time.

Signature
FromOADate(value: Number) -> Date & Time
DateTime FromOADate(double value)

Parameters

nametypedefaultdescription
valueNumber—The number of days since 1899-12-30, with the time of day as the fraction; values outside -657435 to 2958466 (exclusive) throw an System.ArgumentException.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

From Unix Time Milliseconds

Function

Converts a Unix timestamp in milliseconds, as used by JavaScript and many web APIs, back to a UTC date and time.

Signature
FromUnixTimeMilliseconds(milliseconds: Large Integer) -> Date & Time
DateTime FromUnixTimeMilliseconds(long milliseconds)

Parameters

nametypedefaultdescription
millisecondsLarge Integer—The number of milliseconds since 1970-01-01 00:00:00 UTC, from -62135596800000 to 253402300799999; any other value throws an System.ArgumentOutOfRangeException.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

From Unix Time Seconds

Function

Converts a Unix timestamp in seconds back to a UTC date and time.

Signature
FromUnixTimeSeconds(seconds: Large Integer) -> Date & Time
DateTime FromUnixTimeSeconds(long seconds)

Parameters

nametypedefaultdescription
secondsLarge Integer—The number of seconds since 1970-01-01 00:00:00 UTC, from -62135596800 to 253402300799; any other value throws an System.ArgumentOutOfRangeException.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Date Only Max Value

Function

Gets the largest possible value of System.DateOnly.

Signature
DateOnlyMaxValue() -> DateOnly
DateOnly DateOnlyMaxValue()

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Date Only Min Value

Function

Gets the smallest possible value of System.DateOnly.

Signature
DateOnlyMinValue() -> DateOnly
DateOnly DateOnlyMinValue()

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Max Value

Function

Gets the largest possible value of System.DateTime.

Signature
MaxValue() -> Date & Time
DateTime MaxValue()

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Min Value

Function

Gets the smallest possible value of System.DateTime.

Signature
MinValue() -> Date & Time
DateTime MinValue()

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Nanoseconds Per Tick

Function

Gets the number of nanoseconds in one tick.

Signature
NanosecondsPerTick() -> Large Integer
long NanosecondsPerTick()

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Now

Function

Gets the current local date and time.

Signature
Now() -> Date & Time
DateTime Now()

Returns

resultDate & Time

Remarks

The returned System.DateTime has DateTime.Kind set to DateTimeKind.Local.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Ticks Per Day

Function

Gets the number of ticks in one day.

Signature
TicksPerDay() -> Large Integer
long TicksPerDay()

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Ticks Per Hour

Function

Gets the number of ticks in one hour.

Signature
TicksPerHour() -> Large Integer
long TicksPerHour()

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Ticks Per Microsecond

Function

Gets the number of ticks in one microsecond.

Signature
TicksPerMicrosecond() -> Large Integer
long TicksPerMicrosecond()

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Ticks Per Millisecond

Function

Gets the number of ticks in one millisecond.

Signature
TicksPerMillisecond() -> Large Integer
long TicksPerMillisecond()

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Ticks Per Minute

Function

Gets the number of ticks in one minute.

Signature
TicksPerMinute() -> Large Integer
long TicksPerMinute()

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Ticks Per Second

Function

Gets the number of ticks in one second.

Signature
TicksPerSecond() -> Large Integer
long TicksPerSecond()

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Only Max Value

Function

Gets the largest possible value of System.TimeOnly.

Signature
TimeOnlyMaxValue() -> TimeOnly
TimeOnly TimeOnlyMaxValue()

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Only Min Value

Function

Gets the smallest possible value of System.TimeOnly.

Signature
TimeOnlyMinValue() -> TimeOnly
TimeOnly TimeOnlyMinValue()

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span Max Value

Function

Gets the largest possible value of System.TimeSpan.

Signature
TimeSpanMaxValue() -> TimeSpan
TimeSpan TimeSpanMaxValue()

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span Min Value

Function

Gets the smallest possible value of System.TimeSpan.

Signature
TimeSpanMinValue() -> TimeSpan
TimeSpan TimeSpanMinValue()

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span Zero

Function

Gets a zero-length System.TimeSpan.

Signature
TimeSpanZero() -> TimeSpan
TimeSpan TimeSpanZero()

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Today

Function

Gets the current local date with the time set to midnight.

Signature
Today() -> Date & Time
DateTime Today()

Returns

resultDate & Time

Remarks

The returned System.DateTime has DateTime.Kind set to DateTimeKind.Local.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Unix Epoch

Function

Gets the Unix epoch date and time: 1970-01-01 00:00:00 UTC.

Signature
UnixEpoch() -> Date & Time
DateTime UnixEpoch()

Returns

resultDate & Time

Remarks

The returned System.DateTime has DateTime.Kind set to DateTimeKind.Utc.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Utc Now

Function

Gets the current UTC date and time.

Signature
UtcNow() -> Date & Time
DateTime UtcNow()

Returns

resultDate & Time

Remarks

The returned System.DateTime has DateTime.Kind set to DateTimeKind.Utc.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Get Date Time Formats

Function

Overload 1 of 4

Signature
GetDateTimeFormats(value: Date & Time) -> Text Array
string[] GetDateTimeFormats(DateTime value)

Writes a date and time in every standard format of the current culture, useful for seeing which format to pick.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to format.

Returns

resultText Array

Overload 2 of 4

Signature
GetDateTimeFormats -> Text Array
    value: Date & Time
    provider: IFormatProvider
string[] GetDateTimeFormats(
    DateTime value,
    IFormatProvider provider)

Writes a date and time in every standard format of a given culture.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to format.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText Array

Overload 3 of 4

Signature
GetDateTimeFormats -> Text Array
    value: Date & Time
    format: Char
string[] GetDateTimeFormats(DateTime value, char format)

Writes a date and time in every pattern that one standard format specifier has in the current culture.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to format.
formatChar—A standard format specifier such as 'd', 'D', 't' or 'G'; one that is not a standard specifier throws a System.FormatException.

Returns

resultText Array

Overload 4 of 4

Signature
GetDateTimeFormats -> Text Array
    value: Date & Time
    format: Char
    provider: IFormatProvider
string[] GetDateTimeFormats(
    DateTime value,
    char format,
    IFormatProvider provider)

Writes a date and time in every pattern that one standard format specifier has in a given culture.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to format.
formatChar—A standard format specifier such as 'd', 'D', 't' or 'G'; one that is not a standard specifier throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Greater Than

Function

Overload 1 of 4

Signature
GreaterThan(left: Date & Time, right: Date & Time) -> Truth
bool GreaterThan(DateTime left, DateTime right)

Checks whether one date and time is later than another.

Parameters

nametypedefaultdescription
leftDate & Time—The date and time to test.
rightDate & Time—The date and time to compare against.

Returns

resultTruth

Remarks

Only the tick values are compared and DateTime.Kind is ignored.

Overload 2 of 4

Signature
GreaterThan(left: DateOnly, right: DateOnly) -> Truth
bool GreaterThan(DateOnly left, DateOnly right)

Checks whether one date comes after another.

Parameters

nametypedefaultdescription
leftDateOnly—The date to test.
rightDateOnly—The date to compare against.

Returns

resultTruth

Overload 3 of 4

Signature
GreaterThan(left: TimeOnly, right: TimeOnly) -> Truth
bool GreaterThan(TimeOnly left, TimeOnly right)

Checks whether one time of day is later than another, counting from midnight with no wrap-around.

Parameters

nametypedefaultdescription
leftTimeOnly—The time of day to test.
rightTimeOnly—The time of day to compare against.

Returns

resultTruth

Overload 4 of 4

Signature
GreaterThan(left: TimeSpan, right: TimeSpan) -> Truth
bool GreaterThan(TimeSpan left, TimeSpan right)

Checks whether one duration is longer than another; negative durations count as shorter than zero.

Parameters

nametypedefaultdescription
leftTimeSpan—The duration to test.
rightTimeSpan—The duration to compare against.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Greater Than Or Equal

Function

Overload 1 of 4

Signature
GreaterThanOrEqual -> Truth
    left: Date & Time
    right: Date & Time
bool GreaterThanOrEqual(DateTime left, DateTime right)

Checks whether one date and time is later than or the same as another.

Parameters

nametypedefaultdescription
leftDate & Time—The date and time to test.
rightDate & Time—The date and time to compare against.

Returns

resultTruth

Remarks

Only the tick values are compared and DateTime.Kind is ignored.

Overload 2 of 4

Signature
GreaterThanOrEqual(left: DateOnly, right: DateOnly) -> Truth
bool GreaterThanOrEqual(DateOnly left, DateOnly right)

Checks whether one date comes after or on the same day as another.

Parameters

nametypedefaultdescription
leftDateOnly—The date to test.
rightDateOnly—The date to compare against.

Returns

resultTruth

Overload 3 of 4

Signature
GreaterThanOrEqual(left: TimeOnly, right: TimeOnly) -> Truth
bool GreaterThanOrEqual(TimeOnly left, TimeOnly right)

Checks whether one time of day is later than or the same as another, counting from midnight with no wrap-around.

Parameters

nametypedefaultdescription
leftTimeOnly—The time of day to test.
rightTimeOnly—The time of day to compare against.

Returns

resultTruth

Overload 4 of 4

Signature
GreaterThanOrEqual(left: TimeSpan, right: TimeSpan) -> Truth
bool GreaterThanOrEqual(TimeSpan left, TimeSpan right)

Checks whether one duration is longer than or equal to another; negative durations count as shorter than zero.

Parameters

nametypedefaultdescription
leftTimeSpan—The duration to test.
rightTimeSpan—The duration to compare against.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Hour

Function

Overload 1 of 2

Signature
Hour(value: Date & Time) -> Integer
int Hour(DateTime value)

Gets the hour of a date and time on the 24-hour clock.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Hour(value: TimeOnly) -> Integer
int Hour(TimeOnly value)

Gets the hour component of a TimeOnly.

Parameters

nametypedefaultdescription
valueTimeOnly—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Hours

Function

Gets the hours part of a duration, what is left after whole days are taken out; use DateTimeRoutines.TotalHours for the whole duration in hours.

Signature
Hours(value: TimeSpan) -> Integer
int Hours(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Is Between

Function

Checks whether a time of day falls within a range, including ranges that cross midnight such as 22:00 to 06:00.

Signature
IsBetween -> Truth
    value: TimeOnly
    start: TimeOnly
    end: TimeOnly
bool IsBetween(TimeOnly value, TimeOnly start, TimeOnly end)

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day to test.
startTimeOnly—The start of the range, included.
endTimeOnly—The end of the range, excluded; when earlier than Start the range runs through midnight.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Is Daylight Saving Time

Function

Checks whether a date and time falls within daylight saving time in this computer's local time zone.

Signature
IsDaylightSavingTime(value: Date & Time) -> Truth
bool IsDaylightSavingTime(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time; a UTC value always gives false, and a local or unspecified value is read as local time.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Is Leap Year

Function

Returns whether the given year is a leap year.

Signature
IsLeapYear(year: Integer) -> Truth
bool IsLeapYear(int year)

Parameters

nametypedefaultdescription
yearInteger—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Kind

Function

Tells whether a date and time is marked as local time, UTC, or unspecified.

Signature
Kind(value: Date & Time) -> DateTimeKind
DateTimeKind Kind(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to inspect.

Returns

resultDateTimeKind
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Less Than

Function

Overload 1 of 4

Signature
LessThan(left: Date & Time, right: Date & Time) -> Truth
bool LessThan(DateTime left, DateTime right)

Checks whether one date and time is earlier than another.

Parameters

nametypedefaultdescription
leftDate & Time—The date and time to test.
rightDate & Time—The date and time to compare against.

Returns

resultTruth

Remarks

Only the tick values are compared and DateTime.Kind is ignored.

Overload 2 of 4

Signature
LessThan(left: DateOnly, right: DateOnly) -> Truth
bool LessThan(DateOnly left, DateOnly right)

Checks whether one date comes before another.

Parameters

nametypedefaultdescription
leftDateOnly—The date to test.
rightDateOnly—The date to compare against.

Returns

resultTruth

Overload 3 of 4

Signature
LessThan(left: TimeOnly, right: TimeOnly) -> Truth
bool LessThan(TimeOnly left, TimeOnly right)

Checks whether one time of day is earlier than another, counting from midnight with no wrap-around.

Parameters

nametypedefaultdescription
leftTimeOnly—The time of day to test.
rightTimeOnly—The time of day to compare against.

Returns

resultTruth

Overload 4 of 4

Signature
LessThan(left: TimeSpan, right: TimeSpan) -> Truth
bool LessThan(TimeSpan left, TimeSpan right)

Checks whether one duration is shorter than another; negative durations count as shorter than zero.

Parameters

nametypedefaultdescription
leftTimeSpan—The duration to test.
rightTimeSpan—The duration to compare against.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Less Than Or Equal

Function

Overload 1 of 4

Signature
LessThanOrEqual(left: Date & Time, right: Date & Time) -> Truth
bool LessThanOrEqual(DateTime left, DateTime right)

Checks whether one date and time is earlier than or the same as another.

Parameters

nametypedefaultdescription
leftDate & Time—The date and time to test.
rightDate & Time—The date and time to compare against.

Returns

resultTruth

Remarks

Only the tick values are compared and DateTime.Kind is ignored.

Overload 2 of 4

Signature
LessThanOrEqual(left: DateOnly, right: DateOnly) -> Truth
bool LessThanOrEqual(DateOnly left, DateOnly right)

Checks whether one date comes before or on the same day as another.

Parameters

nametypedefaultdescription
leftDateOnly—The date to test.
rightDateOnly—The date to compare against.

Returns

resultTruth

Overload 3 of 4

Signature
LessThanOrEqual(left: TimeOnly, right: TimeOnly) -> Truth
bool LessThanOrEqual(TimeOnly left, TimeOnly right)

Checks whether one time of day is earlier than or the same as another, counting from midnight with no wrap-around.

Parameters

nametypedefaultdescription
leftTimeOnly—The time of day to test.
rightTimeOnly—The time of day to compare against.

Returns

resultTruth

Overload 4 of 4

Signature
LessThanOrEqual(left: TimeSpan, right: TimeSpan) -> Truth
bool LessThanOrEqual(TimeSpan left, TimeSpan right)

Checks whether one duration is shorter than or equal to another; negative durations count as shorter than zero.

Parameters

nametypedefaultdescription
leftTimeSpan—The duration to test.
rightTimeSpan—The duration to compare against.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Microsecond

Function

Overload 1 of 2

Signature
Microsecond(value: Date & Time) -> Integer
int Microsecond(DateTime value)

Gets the microsecond part of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Microsecond(value: TimeOnly) -> Integer
int Microsecond(TimeOnly value)

Gets the microsecond part of a time of day.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Microseconds

Function

Gets the microseconds part of a duration, what is left after whole milliseconds are taken out; use DateTimeRoutines.TotalMicroseconds for the whole duration in microseconds.

Signature
Microseconds(value: TimeSpan) -> Integer
int Microseconds(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Millisecond

Function

Overload 1 of 2

Signature
Millisecond(value: Date & Time) -> Integer
int Millisecond(DateTime value)

Gets the millisecond part of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Millisecond(value: TimeOnly) -> Integer
int Millisecond(TimeOnly value)

Gets the millisecond part of a time of day.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Milliseconds

Function

Gets the milliseconds part of a duration, what is left after whole seconds are taken out; use DateTimeRoutines.TotalMilliseconds for the whole duration in milliseconds.

Signature
Milliseconds(value: TimeSpan) -> Integer
int Milliseconds(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Minute

Function

Overload 1 of 2

Signature
Minute(value: Date & Time) -> Integer
int Minute(DateTime value)

Gets the minute of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Minute(value: TimeOnly) -> Integer
int Minute(TimeOnly value)

Gets the minute of a time of day.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Minutes

Function

Gets the minutes part of a duration, what is left after whole hours are taken out; use DateTimeRoutines.TotalMinutes for the whole duration in minutes.

Signature
Minutes(value: TimeSpan) -> Integer
int Minutes(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Month

Function

Overload 1 of 2

Signature
Month(value: Date & Time) -> Integer
int Month(DateTime value)

Gets the month of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Month(value: DateOnly) -> Integer
int Month(DateOnly value)

Gets the month of a date.

Parameters

nametypedefaultdescription
valueDateOnly—The date.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Multiply

Function

Scales a duration by a factor, for example to get three times or half of it.

Signature
Multiply(value: TimeSpan, factor: Number) -> TimeSpan
TimeSpan Multiply(TimeSpan value, double factor)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration to scale.
factorNumber—The multiplier, which may be fractional or negative; NaN throws an System.ArgumentException.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Nanosecond

Function

Overload 1 of 2

Signature
Nanosecond(value: Date & Time) -> Integer
int Nanosecond(DateTime value)

Gets the nanosecond part of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Nanosecond(value: TimeOnly) -> Integer
int Nanosecond(TimeOnly value)

Gets the nanosecond part of a time of day.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Nanoseconds

Function

Gets the nanoseconds part of a duration, what is left after whole microseconds are taken out.

Signature
Nanoseconds(value: TimeSpan) -> Integer
int Nanoseconds(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Negate

Function

Flips the sign of a duration, so 5 minutes becomes -5 minutes and the reverse.

Signature
Negate(value: TimeSpan) -> TimeSpan
TimeSpan Negate(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration to negate; TimeSpan.MinValue throws an System.OverflowException because its negation does not fit.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Not Equals

Function

Overload 1 of 4

Signature
NotEquals(left: Date & Time, right: Date & Time) -> Truth
bool NotEquals(DateTime left, DateTime right)

Checks whether two date and time values differ.

Parameters

nametypedefaultdescription
leftDate & Time—The first date and time.
rightDate & Time—The second date and time.

Returns

resultTruth

Remarks

Only the tick values are compared and DateTime.Kind is ignored.

Overload 2 of 4

Signature
NotEquals(left: DateOnly, right: DateOnly) -> Truth
bool NotEquals(DateOnly left, DateOnly right)

Checks whether two dates are different days.

Parameters

nametypedefaultdescription
leftDateOnly—The first date.
rightDateOnly—The second date.

Returns

resultTruth

Overload 3 of 4

Signature
NotEquals(left: TimeOnly, right: TimeOnly) -> Truth
bool NotEquals(TimeOnly left, TimeOnly right)

Checks whether two times of day differ.

Parameters

nametypedefaultdescription
leftTimeOnly—The first time of day.
rightTimeOnly—The second time of day.

Returns

resultTruth

Overload 4 of 4

Signature
NotEquals(left: TimeSpan, right: TimeSpan) -> Truth
bool NotEquals(TimeSpan left, TimeSpan right)

Checks whether two durations differ in length.

Parameters

nametypedefaultdescription
leftTimeSpan—The first duration.
rightTimeSpan—The second duration.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Parse

Function

Overload 1 of 3

Signature
Parse(s: Text) -> Date & Time
DateTime Parse(string s)

Parses a string into a DateTime.

Parameters

nametypedefaultdescription
sText—

Returns

resultDate & Time

Overload 2 of 3

Signature
Parse(s: Text, provider: IFormatProvider) -> Date & Time
DateTime Parse(string s, IFormatProvider provider)

Reads a date and time from text written the way a given culture writes it.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that is not a date and time throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultDate & Time

Overload 3 of 3

Signature
Parse -> Date & Time
    s: Text
    provider: IFormatProvider
    styles: DateTimeStyles
DateTime Parse(
    string s,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a date and time from text written the way a given culture writes it, with options for white space and time-zone handling.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that is not a date and time throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—Options such as DateTimeStyles.AdjustToUniversal or DateTimeStyles.AssumeUniversal; a contradictory combination throws an System.ArgumentException.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Parse Date Only

Function

Overload 1 of 3

Signature
ParseDateOnly(s: Text) -> DateOnly
DateOnly ParseDateOnly(string s)

Parses a string into a DateOnly.

Parameters

nametypedefaultdescription
sText—

Returns

resultDateOnly

Overload 2 of 3

Signature
ParseDateOnly(s: Text, provider: IFormatProvider) -> DateOnly
DateOnly ParseDateOnly(string s, IFormatProvider provider)

Reads a date from text written the way a given culture writes it; the text must not contain a time of day.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that is not a date, or that includes a time, throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultDateOnly

Overload 3 of 3

Signature
ParseDateOnly -> DateOnly
    s: Text
    provider: IFormatProvider
    styles: DateTimeStyles
DateOnly ParseDateOnly(
    string s,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a date from text written the way a given culture writes it, with options for white space.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that is not a date, or that includes a time, throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException.

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Parse Exact

Function

Overload 1 of 3

Signature
ParseExact -> Date & Time
    s: Text
    format: Text
    provider: IFormatProvider
DateTime ParseExact(
    string s,
    string format,
    IFormatProvider provider)

Reads a date and time from text that must match one exact format, such as "yyyy-MM-dd HH:mm:ss".

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException.
formatText—The standard or custom format the text must match.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultDate & Time

Overload 2 of 3

Signature
ParseExact -> Date & Time
    s: Text
    format: Text
    provider: IFormatProvider
    styles: DateTimeStyles
DateTime ParseExact(
    string s,
    string format,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a date and time from text that must match one exact format, with options for white space and time-zone handling.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException.
formatText—The standard or custom format the text must match.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—Options such as DateTimeStyles.AllowWhiteSpaces or DateTimeStyles.AssumeUniversal; a contradictory combination throws an System.ArgumentException.

Returns

resultDate & Time

Overload 3 of 3

Signature
ParseExact -> Date & Time
    s: Text
    formats: Text Array
    provider: IFormatProvider
    styles: DateTimeStyles
DateTime ParseExact(
    string s,
    string[] formats,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a date and time from text that must match one of several exact formats, useful when input arrives in more than one layout.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that matches none of the formats throws a System.FormatException.
formatsText Array—The formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—Options such as DateTimeStyles.AllowWhiteSpaces or DateTimeStyles.AssumeUniversal; a contradictory combination throws an System.ArgumentException.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Parse Exact Date Only

Function

Overload 1 of 3

Signature
ParseExactDateOnly -> DateOnly
    s: Text
    format: Text
    provider: IFormatProvider
DateOnly ParseExactDateOnly(
    string s,
    string format,
    IFormatProvider provider)

Reads a date from text that must match one exact format, such as "yyyy-MM-dd".

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException.
formatText—The standard or custom date format the text must match.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultDateOnly

Overload 2 of 3

Signature
ParseExactDateOnly -> DateOnly
    s: Text
    format: Text
    provider: IFormatProvider
    styles: DateTimeStyles
DateOnly ParseExactDateOnly(
    string s,
    string format,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a date from text that must match one exact format, with options for white space.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException.
formatText—The standard or custom date format the text must match.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException.

Returns

resultDateOnly

Overload 3 of 3

Signature
ParseExactDateOnly -> DateOnly
    s: Text
    formats: Text Array
    provider: IFormatProvider
    styles: DateTimeStyles
DateOnly ParseExactDateOnly(
    string s,
    string[] formats,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a date from text that must match one of several exact formats, useful when input arrives in more than one layout.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that matches none of the formats throws a System.FormatException.
formatsText Array—The date formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException.

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Parse Exact Time Only

Function

Overload 1 of 3

Signature
ParseExactTimeOnly -> TimeOnly
    s: Text
    format: Text
    provider: IFormatProvider
TimeOnly ParseExactTimeOnly(
    string s,
    string format,
    IFormatProvider provider)

Reads a time of day from text that must match one exact format, such as "HH:mm:ss".

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException.
formatText—The standard or custom time format the text must match.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultTimeOnly

Overload 2 of 3

Signature
ParseExactTimeOnly -> TimeOnly
    s: Text
    format: Text
    provider: IFormatProvider
    styles: DateTimeStyles
TimeOnly ParseExactTimeOnly(
    string s,
    string format,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a time of day from text that must match one exact format, with options for white space.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException.
formatText—The standard or custom time format the text must match.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException.

Returns

resultTimeOnly

Overload 3 of 3

Signature
ParseExactTimeOnly -> TimeOnly
    s: Text
    formats: Text Array
    provider: IFormatProvider
    styles: DateTimeStyles
TimeOnly ParseExactTimeOnly(
    string s,
    string[] formats,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a time of day from text that must match one of several exact formats, useful when input arrives in more than one layout.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that matches none of the formats throws a System.FormatException.
formatsText Array—The time formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException.

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Parse Exact Time Span

Function

Overload 1 of 4

Signature
ParseExactTimeSpan -> TimeSpan
    input: Text
    format: Text
    provider: IFormatProvider
TimeSpan ParseExactTimeSpan(
    string input,
    string format,
    IFormatProvider provider)

Reads a duration from text that must match one exact format, such as "c" or a custom pattern like @"hh\:mm".

Parameters

nametypedefaultdescription
inputText—The text to read; null throws an System.ArgumentNullException, text that does not match throws a System.FormatException, and a value beyond the System.TimeSpan range throws an System.OverflowException.
formatText—The standard or custom format the text must match.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultTimeSpan

Overload 2 of 4

Signature
ParseExactTimeSpan -> TimeSpan
    input: Text
    format: Text
    provider: IFormatProvider
    styles: TimeSpanStyles
TimeSpan ParseExactTimeSpan(
    string input,
    string format,
    IFormatProvider provider,
    TimeSpanStyles styles)

Reads a duration from text that must match one exact format, optionally treating it as negative.

Parameters

nametypedefaultdescription
inputText—The text to read; null throws an System.ArgumentNullException, text that does not match throws a System.FormatException, and a value beyond the System.TimeSpan range throws an System.OverflowException.
formatText—The standard or custom format the text must match.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesTimeSpanStyles—TimeSpanStyles.AssumeNegative makes a custom-format result negative; TimeSpanStyles.None leaves it as written.

Returns

resultTimeSpan

Overload 3 of 4

Signature
ParseExactTimeSpan -> TimeSpan
    input: Text
    formats: Text Array
    provider: IFormatProvider
TimeSpan ParseExactTimeSpan(
    string input,
    string[] formats,
    IFormatProvider provider)

Reads a duration from text that must match one of several exact formats, useful when input arrives in more than one layout.

Parameters

nametypedefaultdescription
inputText—The text to read; null throws an System.ArgumentNullException, text that matches none of the formats throws a System.FormatException, and a value beyond the System.TimeSpan range throws an System.OverflowException.
formatsText Array—The formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultTimeSpan

Overload 4 of 4

Signature
ParseExactTimeSpan -> TimeSpan
    input: Text
    formats: Text Array
    provider: IFormatProvider
    styles: TimeSpanStyles
TimeSpan ParseExactTimeSpan(
    string input,
    string[] formats,
    IFormatProvider provider,
    TimeSpanStyles styles)

Reads a duration from text that must match one of several exact formats, optionally treating it as negative.

Parameters

nametypedefaultdescription
inputText—The text to read; null throws an System.ArgumentNullException, text that matches none of the formats throws a System.FormatException, and a value beyond the System.TimeSpan range throws an System.OverflowException.
formatsText Array—The formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesTimeSpanStyles—TimeSpanStyles.AssumeNegative makes a custom-format result negative; TimeSpanStyles.None leaves it as written.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Parse Time Only

Function

Overload 1 of 3

Signature
ParseTimeOnly(s: Text) -> TimeOnly
TimeOnly ParseTimeOnly(string s)

Parses a string into a TimeOnly.

Parameters

nametypedefaultdescription
sText—

Returns

resultTimeOnly

Overload 2 of 3

Signature
ParseTimeOnly(s: Text, provider: IFormatProvider) -> TimeOnly
TimeOnly ParseTimeOnly(string s, IFormatProvider provider)

Reads a time of day from text written the way a given culture writes it; the text must not contain a date.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that is not a time, or that includes a date, throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultTimeOnly

Overload 3 of 3

Signature
ParseTimeOnly -> TimeOnly
    s: Text
    provider: IFormatProvider
    styles: DateTimeStyles
TimeOnly ParseTimeOnly(
    string s,
    IFormatProvider provider,
    DateTimeStyles styles)

Reads a time of day from text written the way a given culture writes it, with options for white space.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException and text that is not a time, or that includes a date, throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException.

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Parse Time Span

Function

Overload 1 of 2

Signature
ParseTimeSpan(s: Text) -> TimeSpan
TimeSpan ParseTimeSpan(string s)

Parses a string into a TimeSpan.

Parameters

nametypedefaultdescription
sText—

Returns

resultTimeSpan

Overload 2 of 2

Signature
ParseTimeSpan(s: Text, provider: IFormatProvider) -> TimeSpan
TimeSpan ParseTimeSpan(string s, IFormatProvider provider)

Reads a duration from text in the form [-][d.]hh:mm[:ss[.fffffff]], such as "1.02:30:00" for one day two and a half hours, using a given culture's decimal separator.

Parameters

nametypedefaultdescription
sText—The text to read; null throws an System.ArgumentNullException, text in the wrong form throws a System.FormatException, and a part out of range (such as 24 hours) or a total beyond the System.TimeSpan range throws an System.OverflowException.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Second

Function

Overload 1 of 2

Signature
Second(value: Date & Time) -> Integer
int Second(DateTime value)

Gets the second of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Second(value: TimeOnly) -> Integer
int Second(TimeOnly value)

Gets the second of a time of day.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Seconds

Function

Gets the seconds part of a duration, what is left after whole minutes are taken out; use DateTimeRoutines.TotalSeconds for the whole duration in seconds.

Signature
Seconds(value: TimeSpan) -> Integer
int Seconds(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Specify Kind

Function

Creates a new System.DateTime value with the same ticks as the specified value, but with the specified System.DateTimeKind.

Signature
SpecifyKind -> Date & Time
    value: Date & Time
    kind: DateTimeKind
DateTime SpecifyKind(DateTime value, DateTimeKind kind)

Parameters

nametypedefaultdescription
valueDate & Time—
kindDateTimeKind—

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Subtract

Function

Overload 1 of 4

Signature
Subtract(left: Date & Time, right: Date & Time) -> TimeSpan
TimeSpan Subtract(DateTime left, DateTime right)

Measures the time elapsed from one date and time to another.

Parameters

nametypedefaultdescription
leftDate & Time—The later date and time.
rightDate & Time—The earlier date and time.

Returns

resultTimeSpan

Remarks

The tick values are subtracted directly and DateTime.Kind is ignored, so convert both values to UTC first if one is local and the other UTC.

Overload 2 of 4

Signature
Subtract(value: Date & Time, delta: TimeSpan) -> Date & Time
DateTime Subtract(DateTime value, TimeSpan delta)

Moves a date and time back by a duration.

Parameters

nametypedefaultdescription
valueDate & Time—The starting date and time; its kind is kept.
deltaTimeSpan—The duration to subtract; a negative duration moves forward.

Returns

resultDate & Time

Overload 3 of 4

Signature
Subtract(left: TimeOnly, right: TimeOnly) -> TimeSpan
TimeSpan Subtract(TimeOnly left, TimeOnly right)

Measures how long the clock runs forward from one time of day to reach another, wrapping past midnight if needed.

Parameters

nametypedefaultdescription
leftTimeOnly—The time of day to reach.
rightTimeOnly—The time of day to start from.

Returns

resultTimeSpan

Remarks

The result is never negative: from 23:00 to 01:00 is 2 hours, not -22 hours.

Overload 4 of 4

Signature
Subtract(left: TimeSpan, right: TimeSpan) -> TimeSpan
TimeSpan Subtract(TimeSpan left, TimeSpan right)

Subtracts one duration from another.

Parameters

nametypedefaultdescription
leftTimeSpan—The duration to subtract from.
rightTimeSpan—The duration to subtract.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Ticks

Function

Overload 1 of 3

Signature
Ticks(value: Date & Time) -> Large Integer
long Ticks(DateTime value)

Gets a date and time as a single number of ticks, useful for storing it or doing exact arithmetic.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultLarge Integer

Overload 2 of 3

Signature
Ticks(value: TimeOnly) -> Large Integer
long Ticks(TimeOnly value)

Gets a time of day as the number of ticks since midnight.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day.

Returns

resultLarge Integer

Overload 3 of 3

Signature
Ticks(value: TimeSpan) -> Large Integer
long Ticks(TimeSpan value)

Gets a duration as a single number of ticks, useful for storing it or doing exact arithmetic.

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Between

Function

Measures the time from one date to another as a System.TimeSpan of whole days.

Signature
TimeBetween(left: DateOnly, right: DateOnly) -> TimeSpan
TimeSpan TimeBetween(DateOnly left, DateOnly right)

Parameters

nametypedefaultdescription
leftDateOnly—The later date.
rightDateOnly—The earlier date.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Of Day

Function

Gets the time of day of a date and time as the duration since midnight.

Signature
TimeOfDay(value: Date & Time) -> TimeSpan
TimeSpan TimeOfDay(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Only From Date Time

Function

Takes the time of day of a System.DateTime and drops its date.

Signature
TimeOnlyFromDateTime(value: Date & Time) -> TimeOnly
TimeOnly TimeOnlyFromDateTime(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to take the time of day from; its kind is ignored and no time-zone conversion is made.

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Only From Ticks

Function

Creates a System.TimeOnly time of day from the number of ticks since midnight.

Signature
TimeOnlyFromTicks(ticks: Large Integer) -> TimeOnly
TimeOnly TimeOnlyFromTicks(long ticks)

Parameters

nametypedefaultdescription
ticksLarge Integer—The number of 100-nanosecond ticks since midnight, from 0 to one less than TimeSpan.TicksPerDay; any other value throws an System.ArgumentOutOfRangeException.

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Only From Time Span

Function

Turns a duration since midnight into a System.TimeOnly time of day, for example 13 hours into 13:00.

Signature
TimeOnlyFromTimeSpan(value: TimeSpan) -> TimeOnly
TimeOnly TimeOnlyFromTimeSpan(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The time elapsed since midnight; must be at least zero and less than one day, otherwise an System.ArgumentOutOfRangeException is thrown.

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span From Days

Function

Creates a System.TimeSpan duration from a number of days, which may be fractional or negative (1.5 is a day and a half).

Signature
TimeSpanFromDays(days: Number) -> TimeSpan
TimeSpan TimeSpanFromDays(double days)

Parameters

nametypedefaultdescription
daysNumber—The number of days; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span From Hours

Function

Creates a System.TimeSpan duration from a number of hours, which may be fractional or negative.

Signature
TimeSpanFromHours(hours: Number) -> TimeSpan
TimeSpan TimeSpanFromHours(double hours)

Parameters

nametypedefaultdescription
hoursNumber—The number of hours; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span From Microseconds

Function

Creates a System.TimeSpan duration from a number of microseconds, which may be fractional or negative.

Signature
TimeSpanFromMicroseconds(microseconds: Number) -> TimeSpan
TimeSpan TimeSpanFromMicroseconds(double microseconds)

Parameters

nametypedefaultdescription
microsecondsNumber—The number of microseconds; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span From Milliseconds

Function

Creates a System.TimeSpan duration from a number of milliseconds, which may be fractional or negative.

Signature
TimeSpanFromMilliseconds(milliseconds: Number) -> TimeSpan
TimeSpan TimeSpanFromMilliseconds(double milliseconds)

Parameters

nametypedefaultdescription
millisecondsNumber—The number of milliseconds; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span From Minutes

Function

Creates a System.TimeSpan duration from a number of minutes, which may be fractional or negative.

Signature
TimeSpanFromMinutes(minutes: Number) -> TimeSpan
TimeSpan TimeSpanFromMinutes(double minutes)

Parameters

nametypedefaultdescription
minutesNumber—The number of minutes; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span From Seconds

Function

Creates a System.TimeSpan duration from a number of seconds, which may be fractional or negative.

Signature
TimeSpanFromSeconds(seconds: Number) -> TimeSpan
TimeSpan TimeSpanFromSeconds(double seconds)

Parameters

nametypedefaultdescription
secondsNumber—The number of seconds; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span From Ticks

Function

Creates a System.TimeSpan duration from a number of ticks, where one tick is 100 nanoseconds.

Signature
TimeSpanFromTicks(ticks: Large Integer) -> TimeSpan
TimeSpan TimeSpanFromTicks(long ticks)

Parameters

nametypedefaultdescription
ticksLarge Integer—The number of ticks; may be negative.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Time Span To Time Only

Function

Turns a duration since midnight into a System.TimeOnly time of day, for example 13 hours into 13:00.

Signature
TimeSpanToTimeOnly(value: TimeSpan) -> TimeOnly
TimeOnly TimeSpanToTimeOnly(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The time elapsed since midnight; must be at least zero and less than one day, otherwise an System.ArgumentOutOfRangeException is thrown.

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Binary

Function

Packs a date and time, including its kind, into one 64-bit number for storage; DateTimeRoutines.FromBinary turns it back.

Signature
ToBinary(value: Date & Time) -> Large Integer
long ToBinary(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to pack.

Returns

resultLarge Integer

Remarks

A local value is stored as its UTC instant, so restoring it on a machine in another time zone gives the same moment in that machine's local time.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Date Only

Function

Takes the calendar date of a System.DateTime and drops its time of day.

Signature
ToDateOnly(value: Date & Time) -> DateOnly
DateOnly ToDateOnly(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to take the date from; its kind is ignored and no time-zone conversion is made.

Returns

resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Date Time

Function

Overload 1 of 2

Signature
ToDateTime(date: DateOnly, time: TimeOnly) -> Date & Time
DateTime ToDateTime(DateOnly date, TimeOnly time)

Combines a System.DateOnly date and a System.TimeOnly time of day into one System.DateTime.

Parameters

nametypedefaultdescription
dateDateOnly—The calendar date.
timeTimeOnly—The time of day on that date.

Returns

resultDate & Time

Overload 2 of 2

Signature
ToDateTime -> Date & Time
    date: DateOnly
    time: TimeOnly
    kind: DateTimeKind
DateTime ToDateTime(
    DateOnly date,
    TimeOnly time,
    DateTimeKind kind)

Combines a System.DateOnly date and a System.TimeOnly time of day into one System.DateTime, marked as local, UTC or unspecified.

Parameters

nametypedefaultdescription
dateDateOnly—The calendar date.
timeTimeOnly—The time of day on that date.
kindDateTimeKind—Whether the result is local time, UTC or unspecified.

Returns

resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To File Time

Function

Converts a date and time to a Windows file time: the number of 100-nanosecond intervals since 1601-01-01 00:00:00 UTC.

Signature
ToFileTime(value: Date & Time) -> Large Integer
long ToFileTime(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time; a local or unspecified value is treated as local time and converted to UTC first.

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To File Time Utc

Function

Converts a date and time to a Windows file time, treating an unspecified value as already being UTC.

Signature
ToFileTimeUtc(value: Date & Time) -> Large Integer
long ToFileTimeUtc(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time; only a local value is converted to UTC first, while UTC and unspecified values are used as they are.

Returns

resultLarge Integer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Local Time

Function

Converts the specified System.DateTime value to local time.

Signature
ToLocalTime(value: Date & Time) -> Date & Time
DateTime ToLocalTime(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—

Returns

resultDate & Time

Remarks

DateTime.ToLocalTime uses the DateTime.Kind value:
DateTimeKind.Utc is converted to local time, DateTimeKind.Local
is returned unchanged, and DateTimeKind.Unspecified is assumed to be UTC before conversion.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Long Date String

Function

Overload 1 of 2

Signature
ToLongDateString(value: Date & Time) -> Text
string ToLongDateString(DateTime value)

Writes the date of a date and time in the current culture's long date pattern, such as Saturday, June 15, 2024 in US English.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time; its time of day is not shown.

Returns

resultText

Overload 2 of 2

Signature
ToLongDateString(value: DateOnly) -> Text
string ToLongDateString(DateOnly value)

Writes a date in the current culture's long date pattern, such as Saturday, June 15, 2024 in US English.

Parameters

nametypedefaultdescription
valueDateOnly—The date to format.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Long Time String

Function

Overload 1 of 2

Signature
ToLongTimeString(value: Date & Time) -> Text
string ToLongTimeString(DateTime value)

Writes the time of a date and time in the current culture's long time pattern, usually hours, minutes and seconds.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time; its date is not shown.

Returns

resultText

Overload 2 of 2

Signature
ToLongTimeString(value: TimeOnly) -> Text
string ToLongTimeString(TimeOnly value)

Writes a time of day in the current culture's long time pattern, usually hours, minutes and seconds.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day to format.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To OA Date

Function

Converts a date and time to an OLE Automation date, the number format Excel and other Office applications use for dates.

Signature
ToOADate(value: Date & Time) -> Number
double ToOADate(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time; DateTime.MinValue gives 0, and other dates before year 100 throw an System.OverflowException.

Returns

resultNumber

Remarks

The whole part counts days from 1899-12-30 and the fraction is the time of day, so 1.5 is 1899-12-31 12:00. The kind is ignored.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Short Date String

Function

Overload 1 of 2

Signature
ToShortDateString(value: Date & Time) -> Text
string ToShortDateString(DateTime value)

Writes the date of a date and time in the current culture's short date pattern, such as 6/15/2024 in US English.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time; its time of day is not shown.

Returns

resultText

Overload 2 of 2

Signature
ToShortDateString(value: DateOnly) -> Text
string ToShortDateString(DateOnly value)

Writes a date in the current culture's short date pattern, such as 6/15/2024 in US English.

Parameters

nametypedefaultdescription
valueDateOnly—The date to format.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Short Time String

Function

Overload 1 of 2

Signature
ToShortTimeString(value: Date & Time) -> Text
string ToShortTimeString(DateTime value)

Writes the time of a date and time in the current culture's short time pattern, usually hours and minutes.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time; its date is not shown.

Returns

resultText

Overload 2 of 2

Signature
ToShortTimeString(value: TimeOnly) -> Text
string ToShortTimeString(TimeOnly value)

Writes a time of day in the current culture's short time pattern, usually hours and minutes.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day to format.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To String

Function

Overload 1 of 15

Signature
ToString(value: Date & Time) -> Text
string ToString(DateTime value)

Writes a date and time as text the one way Divooka writes it, whatever region the machine is set to: 2026-01-02 14:30:00, with its fraction of a second where it has one and Z or its offset where it is UTC or local time.

Parameters

nametypedefaultdescription
valueDate & Time—

Returns

resultText

Overload 2 of 15

Signature
ToString(value: Date & Time, format: Text) -> Text
string ToString(DateTime value, string format)

Writes a date and time as text using a format, such as "yyyy-MM-dd HH:mm" or a standard specifier like "o" for round-trip ISO 8601, in the invariant culture - the same on every machine.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to format.
formatText—A standard or custom date and time format string; null or empty uses the general "G" format, and an invalid one throws a System.FormatException.

Returns

resultText

Overload 3 of 15

Signature
ToString(value: Date & Time, provider: IFormatProvider) -> Text
string ToString(DateTime value, IFormatProvider provider)

Writes a date and time as text in the general "G" format of a given culture.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to format.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText

Overload 4 of 15

Signature
ToString -> Text
    value: Date & Time
    format: Text
    provider: IFormatProvider
string ToString(
    DateTime value,
    string format,
    IFormatProvider provider)

Writes a date and time as text using a format and the conventions of a given culture.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to format.
formatText—A standard or custom date and time format string; null or empty uses the general "G" format, and an invalid one throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText

Overload 5 of 15

Signature
ToString(value: DateOnly) -> Text
string ToString(DateOnly value)

Writes a date as text the one way Divooka writes it, whatever region the machine is set to: 2026-01-02.

Parameters

nametypedefaultdescription
valueDateOnly—

Returns

resultText

Overload 6 of 15

Signature
ToString(value: DateOnly, format: Text) -> Text
string ToString(DateOnly value, string format)

Writes a date as text using a format, such as "yyyy-MM-dd" or "o" for ISO 8601, in the invariant culture - the same on every machine.

Parameters

nametypedefaultdescription
valueDateOnly—The date to format.
formatText—A standard or custom date format string; null or empty uses the short date "d" format, and an invalid one or one that asks for a time part throws a System.FormatException.

Returns

resultText

Overload 7 of 15

Signature
ToString(value: DateOnly, provider: IFormatProvider) -> Text
string ToString(DateOnly value, IFormatProvider provider)

Writes a date as text in the short date pattern of a given culture.

Parameters

nametypedefaultdescription
valueDateOnly—The date to format.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText

Overload 8 of 15

Signature
ToString -> Text
    value: DateOnly
    format: Text
    provider: IFormatProvider
string ToString(
    DateOnly value,
    string format,
    IFormatProvider provider)

Writes a date as text using a format and the conventions of a given culture.

Parameters

nametypedefaultdescription
valueDateOnly—The date to format.
formatText—A standard or custom date format string; null or empty uses the short date "d" format, and an invalid one or one that asks for a time part throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText

Overload 9 of 15

Signature
ToString(value: TimeOnly) -> Text
string ToString(TimeOnly value)

Writes a time of day as text the one way Divooka writes it, whatever region the machine is set to: 14:30:00, with its fraction of a second where it has one.

Parameters

nametypedefaultdescription
valueTimeOnly—

Returns

resultText

Overload 10 of 15

Signature
ToString(value: TimeOnly, format: Text) -> Text
string ToString(TimeOnly value, string format)

Writes a time of day as text using a format, such as "HH:mm:ss" or "o" for ISO 8601, in the invariant culture - the same on every machine.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day to format.
formatText—A standard or custom time format string; null or empty uses the short time "t" format, and an invalid one or one that asks for a date part throws a System.FormatException.

Returns

resultText

Overload 11 of 15

Signature
ToString(value: TimeOnly, provider: IFormatProvider) -> Text
string ToString(TimeOnly value, IFormatProvider provider)

Writes a time of day as text in the short time pattern of a given culture.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day to format.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText

Overload 12 of 15

Signature
ToString -> Text
    value: TimeOnly
    format: Text
    provider: IFormatProvider
string ToString(
    TimeOnly value,
    string format,
    IFormatProvider provider)

Writes a time of day as text using a format and the conventions of a given culture.

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day to format.
formatText—A standard or custom time format string; null or empty uses the short time "t" format, and an invalid one or one that asks for a date part throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText

Overload 13 of 15

Signature
ToString(value: TimeSpan) -> Text
string ToString(TimeSpan value)

Writes a duration as text in the constant [-][d.]hh:mm:ss[.fffffff] form, the same on every machine.

Parameters

nametypedefaultdescription
valueTimeSpan—

Returns

resultText

Overload 14 of 15

Signature
ToString(value: TimeSpan, format: Text) -> Text
string ToString(TimeSpan value, string format)

Writes a duration as text using a format: "c" for the constant [-][d.]hh:mm:ss[.fffffff] form, "g" or "G" for the short or long form, or a custom pattern such as @"hh\:mm" - in the invariant culture, the same on every machine.

Parameters

nametypedefaultdescription
valueTimeSpan—The duration to format.
formatText—The format string; null or empty uses "c", and an invalid one throws a System.FormatException.

Returns

resultText

Overload 15 of 15

Signature
ToString -> Text
    value: TimeSpan
    format: Text
    provider: IFormatProvider
string ToString(
    TimeSpan value,
    string format,
    IFormatProvider provider)

Writes a duration as text using a format and the conventions of a given culture, which affects the "g" and "G" formats.

Parameters

nametypedefaultdescription
valueTimeSpan—The duration to format.
formatText—The format string, such as "c", "g", "G" or a custom pattern; null or empty uses "c", and an invalid one throws a System.FormatException.
providerIFormatProvider—The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Total Days

Function

Gets the whole length of a duration in days, including the fraction (36 hours is 1.5).

Signature
TotalDays(value: TimeSpan) -> Number
double TotalDays(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Total Hours

Function

Gets the whole length of a duration in hours, including the fraction (90 minutes is 1.5).

Signature
TotalHours(value: TimeSpan) -> Number
double TotalHours(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Total Microseconds

Function

Gets the whole length of a duration in microseconds, including the fraction.

Signature
TotalMicroseconds(value: TimeSpan) -> Number
double TotalMicroseconds(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Total Milliseconds

Function

Gets the whole length of a duration in milliseconds, including the fraction.

Signature
TotalMilliseconds(value: TimeSpan) -> Number
double TotalMilliseconds(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Total Minutes

Function

Gets the whole length of a duration in minutes, including the fraction.

Signature
TotalMinutes(value: TimeSpan) -> Number
double TotalMinutes(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Total Nanoseconds

Function

Gets the whole length of a duration in nanoseconds.

Signature
TotalNanoseconds(value: TimeSpan) -> Number
double TotalNanoseconds(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Total Seconds

Function

Gets the whole length of a duration in seconds, including the fraction.

Signature
TotalSeconds(value: TimeSpan) -> Number
double TotalSeconds(TimeSpan value)

Parameters

nametypedefaultdescription
valueTimeSpan—The duration.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Time Only

Function

Takes the time of day of a System.DateTime and drops its date.

Signature
ToTimeOnly(value: Date & Time) -> TimeOnly
TimeOnly ToTimeOnly(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to take the time of day from; its kind is ignored and no time-zone conversion is made.

Returns

resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Time Span

Function

Turns a System.TimeOnly time of day into the duration since midnight, for example 13:30 into 13 hours 30 minutes.

Signature
ToTimeSpan(value: TimeOnly) -> TimeSpan
TimeSpan ToTimeSpan(TimeOnly value)

Parameters

nametypedefaultdescription
valueTimeOnly—The time of day.

Returns

resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Universal Time

Function

Converts the specified System.DateTime value to Coordinated Universal Time (UTC).

Signature
ToUniversalTime(value: Date & Time) -> Date & Time
DateTime ToUniversalTime(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—

Returns

resultDate & Time

Remarks

DateTime.ToUniversalTime uses the DateTime.Kind value:
DateTimeKind.Local is converted to UTC, DateTimeKind.Utc
is returned unchanged, and DateTimeKind.Unspecified is assumed to be local time before conversion.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Unix Time Milliseconds

Function

Converts a date and time to a Unix timestamp in milliseconds: the whole milliseconds elapsed since 1970-01-01 00:00:00 UTC, as used by JavaScript and many web APIs.

Signature
ToUnixTimeMilliseconds(value: Date & Time) -> Large Integer
long ToUnixTimeMilliseconds(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to convert.

Returns

resultLarge Integer

Remarks

A UTC value is used as it is; a local or unspecified value is treated as local time and converted to UTC using the local time zone. Times before the epoch give negative numbers, and fractions of a millisecond are discarded.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

To Unix Time Seconds

Function

Converts a date and time to a Unix timestamp: the whole seconds elapsed since 1970-01-01 00:00:00 UTC.

Signature
ToUnixTimeSeconds(value: Date & Time) -> Large Integer
long ToUnixTimeSeconds(DateTime value)

Parameters

nametypedefaultdescription
valueDate & Time—The date and time to convert.

Returns

resultLarge Integer

Remarks

A UTC value is used as it is; a local or unspecified value is treated as local time and converted to UTC using the local time zone. Times before the epoch give negative numbers, and fractions of a second are discarded.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Try Parse

Function

Overload 1 of 2

Signature
TryParse(s: Text) -> (result: Truth, result: Date & Time)
bool TryParse(string s, out DateTime result)

Tries to read a date and time from text in the invariant culture - the same on every machine - reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null or unreadable text makes the node report failure.

Returns

resultTruth
resultDate & Time

Overload 2 of 2

Signature
TryParse -> (result: Truth, result: Date & Time)
    s: Text
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParse(
    string s,
    IFormatProvider provider,
    DateTimeStyles styles,
    out DateTime result)

Tries to read a date and time from text written the way a given culture writes it, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null or unreadable text makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—Options such as DateTimeStyles.AdjustToUniversal; a contradictory combination still throws an System.ArgumentException.

Returns

resultTruth
resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Try Parse Date Only

Function

Overload 1 of 2

Signature
TryParseDateOnly(s: Text) -> (result: Truth, result: DateOnly)
bool TryParseDateOnly(string s, out DateOnly result)

Tries to read a date from text in the invariant culture - the same on every machine - reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null, unreadable text or text that includes a time makes the node report failure.

Returns

resultTruth
resultDateOnly

Overload 2 of 2

Signature
TryParseDateOnly -> (result: Truth, result: DateOnly)
    s: Text
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParseDateOnly(
    string s,
    IFormatProvider provider,
    DateTimeStyles styles,
    out DateOnly result)

Tries to read a date from text written the way a given culture writes it, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null, unreadable text or text that includes a time makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException.

Returns

resultTruth
resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Try Parse Exact

Function

Overload 1 of 2

Signature
TryParseExact -> (result: Truth, result: Date & Time)
    s: Text
    format: Text
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParseExact(
    string s,
    string format,
    IFormatProvider provider,
    DateTimeStyles styles,
    out DateTime result)

Tries to read a date and time from text that must match one exact format, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null or text that does not match makes the node report failure.
formatText—The standard or custom format the text must match; null makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—Options such as DateTimeStyles.AllowWhiteSpaces; a contradictory combination still throws an System.ArgumentException.

Returns

resultTruth
resultDate & Time

Overload 2 of 2

Signature
TryParseExact -> (result: Truth, result: Date & Time)
    s: Text
    formats: Text Array
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParseExact(
    string s,
    string[] formats,
    IFormatProvider provider,
    DateTimeStyles styles,
    out DateTime result)

Tries to read a date and time from text that must match one of several exact formats, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null or text that matches none of the formats makes the node report failure.
formatsText Array—The formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—Options such as DateTimeStyles.AllowWhiteSpaces; a contradictory combination still throws an System.ArgumentException.

Returns

resultTruth
resultDate & Time
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Try Parse Exact Date Only

Function

Overload 1 of 2

Signature
TryParseExactDateOnly -> (result: Truth, result: DateOnly)
    s: Text
    format: Text
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParseExactDateOnly(
    string s,
    string format,
    IFormatProvider provider,
    DateTimeStyles styles,
    out DateOnly result)

Tries to read a date from text that must match one exact format, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null or text that does not match makes the node report failure.
formatText—The standard or custom date format the text must match; null makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException.

Returns

resultTruth
resultDateOnly

Overload 2 of 2

Signature
TryParseExactDateOnly -> (result: Truth, result: DateOnly)
    s: Text
    formats: Text Array
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParseExactDateOnly(
    string s,
    string[] formats,
    IFormatProvider provider,
    DateTimeStyles styles,
    out DateOnly result)

Tries to read a date from text that must match one of several exact formats, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null or text that matches none of the formats makes the node report failure.
formatsText Array—The date formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException.

Returns

resultTruth
resultDateOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Try Parse Exact Time Only

Function

Overload 1 of 2

Signature
TryParseExactTimeOnly -> (result: Truth, result: TimeOnly)
    s: Text
    format: Text
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParseExactTimeOnly(
    string s,
    string format,
    IFormatProvider provider,
    DateTimeStyles styles,
    out TimeOnly result)

Tries to read a time of day from text that must match one exact format, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null or text that does not match makes the node report failure.
formatText—The standard or custom time format the text must match; null makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException.

Returns

resultTruth
resultTimeOnly

Overload 2 of 2

Signature
TryParseExactTimeOnly -> (result: Truth, result: TimeOnly)
    s: Text
    formats: Text Array
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParseExactTimeOnly(
    string s,
    string[] formats,
    IFormatProvider provider,
    DateTimeStyles styles,
    out TimeOnly result)

Tries to read a time of day from text that must match one of several exact formats, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null or text that matches none of the formats makes the node report failure.
formatsText Array—The time formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException.

Returns

resultTruth
resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Try Parse Exact Time Span

Function

Overload 1 of 4

Signature
TryParseExactTimeSpan -> (result: Truth, result: TimeSpan)
    input: Text
    format: Text
    provider: IFormatProvider
bool TryParseExactTimeSpan(
    string input,
    string format,
    IFormatProvider provider,
    out TimeSpan result)

Tries to read a duration from text that must match one exact format, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
inputText—The text to read; null, text that does not match or a value out of range makes the node report failure.
formatText—The standard or custom format the text must match; null makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultTruth
resultTimeSpan

Overload 2 of 4

Signature
TryParseExactTimeSpan -> (result: Truth, result: TimeSpan)
    input: Text
    format: Text
    provider: IFormatProvider
    styles: TimeSpanStyles
bool TryParseExactTimeSpan(
    string input,
    string format,
    IFormatProvider provider,
    TimeSpanStyles styles,
    out TimeSpan result)

Tries to read a duration from text that must match one exact format, optionally treating it as negative, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
inputText—The text to read; null, text that does not match or a value out of range makes the node report failure.
formatText—The standard or custom format the text must match; null makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesTimeSpanStyles—TimeSpanStyles.AssumeNegative makes a custom-format result negative; TimeSpanStyles.None leaves it as written.

Returns

resultTruth
resultTimeSpan

Overload 3 of 4

Signature
TryParseExactTimeSpan -> (result: Truth, result: TimeSpan)
    input: Text
    formats: Text Array
    provider: IFormatProvider
bool TryParseExactTimeSpan(
    string input,
    string[] formats,
    IFormatProvider provider,
    out TimeSpan result)

Tries to read a duration from text that must match one of several exact formats, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
inputText—The text to read; null, text that matches none of the formats or a value out of range makes the node report failure.
formatsText Array—The formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultTruth
resultTimeSpan

Overload 4 of 4

Signature
TryParseExactTimeSpan -> (result: Truth, result: TimeSpan)
    input: Text
    formats: Text Array
    provider: IFormatProvider
    styles: TimeSpanStyles
bool TryParseExactTimeSpan(
    string input,
    string[] formats,
    IFormatProvider provider,
    TimeSpanStyles styles,
    out TimeSpan result)

Tries to read a duration from text that must match one of several exact formats, optionally treating it as negative, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
inputText—The text to read; null, text that matches none of the formats or a value out of range makes the node report failure.
formatsText Array—The formats to try; the first that matches is used.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesTimeSpanStyles—TimeSpanStyles.AssumeNegative makes a custom-format result negative; TimeSpanStyles.None leaves it as written.

Returns

resultTruth
resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Try Parse Time Only

Function

Overload 1 of 2

Signature
TryParseTimeOnly(s: Text) -> (result: Truth, result: TimeOnly)
bool TryParseTimeOnly(string s, out TimeOnly result)

Tries to read a time of day from text in the invariant culture - the same on every machine - reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null, unreadable text or text that includes a date makes the node report failure.

Returns

resultTruth
resultTimeOnly

Overload 2 of 2

Signature
TryParseTimeOnly -> (result: Truth, result: TimeOnly)
    s: Text
    provider: IFormatProvider
    styles: DateTimeStyles
bool TryParseTimeOnly(
    string s,
    IFormatProvider provider,
    DateTimeStyles styles,
    out TimeOnly result)

Tries to read a time of day from text written the way a given culture writes it, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null, unreadable text or text that includes a date makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.
stylesDateTimeStyles—White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException.

Returns

resultTruth
resultTimeOnly
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Try Parse Time Span

Function

Overload 1 of 2

Signature
TryParseTimeSpan(s: Text) -> (result: Truth, result: TimeSpan)
bool TryParseTimeSpan(string s, out TimeSpan result)

Tries to read a duration in the form [-][d.]hh:mm[:ss[.fffffff]] from text in the invariant culture - the same on every machine - reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null, text in the wrong form or a value out of range makes the node report failure.

Returns

resultTruth
resultTimeSpan

Overload 2 of 2

Signature
TryParseTimeSpan -> (result: Truth, result: TimeSpan)
    s: Text
    provider: IFormatProvider
bool TryParseTimeSpan(
    string s,
    IFormatProvider provider,
    out TimeSpan result)

Tries to read a duration in the form [-][d.]hh:mm[:ss[.fffffff]] from text in a given culture, reporting failure instead of throwing.

Parameters

nametypedefaultdescription
sText—The text to read; null, text in the wrong form or a value out of range makes the node report failure.
providerIFormatProvider—The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine.

Returns

resultTruth
resultTimeSpan
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library

Year

Function

Overload 1 of 2

Signature
Year(value: Date & Time) -> Integer
int Year(DateTime value)

Gets the year of a date and time.

Parameters

nametypedefaultdescription
valueDate & Time—The date and time.

Returns

resultInteger

Overload 2 of 2

Signature
Year(value: DateOnly) -> Integer
int Year(DateOnly value)

Gets the year component of a DateOnly.

Parameters

nametypedefaultdescription
valueDateOnly—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Date Time Routines
Package
Standard Library