Date Time Routines
138 nodes
On this page 138
Add
FunctionOverload 1 of 4
Add(value: Date & Time, delta: TimeSpan) -> Date & Time
DateTime Add(DateTime value, TimeSpan delta)
Adds a duration to a DateTime.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | |
| delta | TimeSpan | — |
Returns
| result | Date & Time |
Overload 2 of 4
Add(value: TimeOnly, delta: TimeSpan) -> TimeOnly
TimeOnly Add(TimeOnly value, TimeSpan delta)
Adds a duration to a TimeOnly.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | |
| delta | TimeSpan | — |
Returns
| result | TimeOnly |
Overload 3 of 4
Add -> (result: TimeOnly, wrappedDays: Integer)
value: TimeOnly
delta: TimeSpanTimeOnly 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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The starting time of day. |
| delta | TimeSpan | — | The duration to add; negative moves back. |
Returns
| result | TimeOnly |
| wrappedDays | Integer |
Overload 4 of 4
Add(left: TimeSpan, right: TimeSpan) -> TimeSpan
TimeSpan Add(TimeSpan left, TimeSpan right)
Adds two TimeSpan values.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | |
| right | TimeSpan | — |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Add Days
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| days | Number | — | The number of days to add; negative moves back. |
Returns
| result | Date & Time |
Overload 2 of 2
AddDays(value: DateOnly, days: Integer) -> DateOnly
DateOnly AddDays(DateOnly value, int days)
Adds days to a DateOnly.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | |
| days | Integer | — |
Returns
| result | DateOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Add Hours
FunctionOverload 1 of 3
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| hours | Number | — | The number of hours to add; negative moves back. |
Returns
| result | Date & Time |
Overload 2 of 3
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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The starting time of day. |
| hours | Number | — | The number of hours to add, which may be fractional or negative. |
Returns
| result | TimeOnly |
Overload 3 of 3
AddHours -> (result: TimeOnly, wrappedDays: Integer)
value: TimeOnly
hours: NumberTimeOnly 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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The starting time of day. |
| hours | Number | — | The number of hours to add, which may be fractional or negative. |
Returns
| result | TimeOnly |
| wrappedDays | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Add Microseconds
FunctionMoves a date and time forward or back by a number of microseconds, which may be fractional.
AddMicroseconds -> Date & Time
value: Date & Time
microseconds: NumberDateTime AddMicroseconds(DateTime value, double microseconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| microseconds | Number | — | The number of microseconds to add; negative moves back. |
Returns
| result | Date & Time |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Add Milliseconds
FunctionMoves a date and time forward or back by a number of milliseconds, which may be fractional.
AddMilliseconds -> Date & Time
value: Date & Time
milliseconds: NumberDateTime AddMilliseconds(DateTime value, double milliseconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| milliseconds | Number | — | The number of milliseconds to add; negative moves back. |
Returns
| result | Date & Time |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Add Minutes
FunctionOverload 1 of 3
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| minutes | Number | — | The number of minutes to add; negative moves back. |
Returns
| result | Date & Time |
Overload 2 of 3
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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The starting time of day. |
| minutes | Number | — | The number of minutes to add, which may be fractional or negative. |
Returns
| result | TimeOnly |
Overload 3 of 3
AddMinutes -> (result: TimeOnly, wrappedDays: Integer)
value: TimeOnly
minutes: NumberTimeOnly 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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The starting time of day. |
| minutes | Number | — | The number of minutes to add, which may be fractional or negative. |
Returns
| result | TimeOnly |
| wrappedDays | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Add Months
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| months | Integer | — | The number of months to add, from -120000 to 120000; negative moves back. |
Returns
| result | Date & 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
AddMonths(value: DateOnly, months: Integer) -> DateOnly
DateOnly AddMonths(DateOnly value, int months)
Moves a date forward or back by whole calendar months.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The starting date. |
| months | Integer | — | The number of months to add; negative moves back. |
Returns
| result | DateOnly |
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
FunctionMoves a date and time forward or back by a number of seconds, which may be fractional.
AddSeconds(value: Date & Time, seconds: Number) -> Date & Time
DateTime AddSeconds(DateTime value, double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| seconds | Number | — | The number of seconds to add; negative moves back. |
Returns
| result | Date & Time |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Add Ticks
FunctionMoves a date and time forward or back by a number of ticks, where one tick is 100 nanoseconds.
AddTicks -> Date & Time
value: Date & Time
ticks: Large IntegerDateTime AddTicks(DateTime value, long ticks)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| ticks | Large Integer | — | The number of ticks to add; negative moves back. |
Returns
| result | Date & Time |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Add Years
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| years | Integer | — | The number of years to add; negative moves back. |
Returns
| result | Date & Time |
Remarks
February 29 moved to a year that is not a leap year becomes February 28.
Overload 2 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The starting date. |
| years | Integer | — | The number of years to add; negative moves back. |
Returns
| result | DateOnly |
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
FunctionOverload 1 of 4
Compare(left: Date & Time, right: Date & Time) -> Integer
int Compare(DateTime left, DateTime right)
Compares two DateTime values.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Date & Time | — | |
| right | Date & Time | — |
Returns
| result | Integer |
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
Compare(left: DateOnly, right: DateOnly) -> Integer
int Compare(DateOnly left, DateOnly right)
Compares two DateOnly values.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | |
| right | DateOnly | — |
Returns
| result | Integer |
Overload 3 of 4
Compare(left: TimeOnly, right: TimeOnly) -> Integer
int Compare(TimeOnly left, TimeOnly right)
Compares two TimeOnly values.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | TimeOnly | — | |
| right | TimeOnly | — |
Returns
| result | Integer |
Overload 4 of 4
Compare(left: TimeSpan, right: TimeSpan) -> Integer
int Compare(TimeSpan left, TimeSpan right)
Compares two TimeSpan values.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | |
| right | TimeSpan | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Create
FunctionOverload 1 of 8
Create(ticks: Large Integer) -> Date & Time
DateTime Create(long ticks)
Creates a DateTime from ticks.
Parameters
| name | type | default | description |
|---|---|---|---|
| ticks | Large Integer | — |
Returns
| result | Date & Time |
Overload 2 of 8
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
| name | type | default | description |
|---|---|---|---|
| ticks | Large 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. |
| kind | DateTimeKind | — | Whether the value is local time, UTC or unspecified. |
Returns
| result | Date & Time |
Overload 3 of 8
Create -> Date & Time
year: Integer
month: Integer
day: IntegerDateTime Create(int year, int month, int day)
Creates a System.DateTime at midnight on the given calendar date.
Parameters
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | The year, from 1 to 9999. |
| month | Integer | — | The month, from 1 to 12. |
| day | Integer | — | The day of the month, from 1 to the number of days in that month. |
Returns
| result | Date & Time |
Overload 4 of 8
Create -> Date & Time
year: Integer
month: Integer
day: Integer
hour: Integer
minute: Integer
second: IntegerDateTime 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
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | The year, from 1 to 9999. |
| month | Integer | — | The month, from 1 to 12. |
| day | Integer | — | The day of the month, from 1 to the number of days in that month. |
| hour | Integer | — | The hour, from 0 to 23. |
| minute | Integer | — | The minute, from 0 to 59. |
| second | Integer | — | The second, from 0 to 59. |
Returns
| result | Date & Time |
Overload 5 of 8
Create -> Date & Time
year: Integer
month: Integer
day: Integer
hour: Integer
minute: Integer
second: Integer
kind: DateTimeKindDateTime 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
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | The year, from 1 to 9999. |
| month | Integer | — | The month, from 1 to 12. |
| day | Integer | — | The day of the month, from 1 to the number of days in that month. |
| hour | Integer | — | The hour, from 0 to 23. |
| minute | Integer | — | The minute, from 0 to 59. |
| second | Integer | — | The second, from 0 to 59. |
| kind | DateTimeKind | — | Whether the value is local time, UTC or unspecified. |
Returns
| result | Date & Time |
Overload 6 of 8
Create -> Date & Time
year: Integer
month: Integer
day: Integer
hour: Integer
minute: Integer
second: Integer
millisecond: IntegerDateTime 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
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | The year, from 1 to 9999. |
| month | Integer | — | The month, from 1 to 12. |
| day | Integer | — | The day of the month, from 1 to the number of days in that month. |
| hour | Integer | — | The hour, from 0 to 23. |
| minute | Integer | — | The minute, from 0 to 59. |
| second | Integer | — | The second, from 0 to 59. |
| millisecond | Integer | — | The millisecond, from 0 to 999. |
Returns
| result | Date & Time |
Overload 7 of 8
Create -> Date & Time
year: Integer
month: Integer
day: Integer
hour: Integer
minute: Integer
second: Integer
millisecond: Integer
kind: DateTimeKindDateTime 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
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | The year, from 1 to 9999. |
| month | Integer | — | The month, from 1 to 12. |
| day | Integer | — | The day of the month, from 1 to the number of days in that month. |
| hour | Integer | — | The hour, from 0 to 23. |
| minute | Integer | — | The minute, from 0 to 59. |
| second | Integer | — | The second, from 0 to 59. |
| millisecond | Integer | — | The millisecond, from 0 to 999. |
| kind | DateTimeKind | — | Whether the value is local time, UTC or unspecified. |
Returns
| result | Date & Time |
Overload 8 of 8
Create -> Date & Time
year: Integer
month: Integer
day: Integer
hour: Integer
minute: Integer
second: Integer
millisecond: Integer
microsecond: Integer
kind: DateTimeKindDateTime 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
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | The year, from 1 to 9999. |
| month | Integer | — | The month, from 1 to 12. |
| day | Integer | — | The day of the month, from 1 to the number of days in that month. |
| hour | Integer | — | The hour, from 0 to 23. |
| minute | Integer | — | The minute, from 0 to 59. |
| second | Integer | — | The second, from 0 to 59. |
| millisecond | Integer | — | The millisecond, from 0 to 999. |
| microsecond | Integer | — | The microsecond, from 0 to 999. |
| kind | DateTimeKind | Unspecified | Whether the value is local time, UTC or unspecified; unspecified when left out. |
Returns
| result | Date & 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
FunctionOverload 1 of 2
CreateDateOnly -> DateOnly
year: Integer
month: Integer
day: IntegerDateOnly CreateDateOnly(int year, int month, int day)
Creates a DateOnly from year, month and day.
Parameters
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | |
| month | Integer | — | |
| day | Integer | — |
Returns
| result | DateOnly |
Overload 2 of 2
CreateDateOnly -> DateOnly
year: Integer
month: Integer
day: Integer
calendar: CalendarDateOnly 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
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | The year in Calendar. |
| month | Integer | — | The month in Calendar. |
| day | Integer | — | The day of the month in Calendar. |
| calendar | Calendar | — | The calendar the year, month and day are expressed in; must not be null. |
Returns
| result | DateOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Create Time Only
FunctionOverload 1 of 4
CreateTimeOnly(hour: Integer, minute: Integer) -> TimeOnly
TimeOnly CreateTimeOnly(int hour, int minute)
Creates a TimeOnly from hour and minute.
Parameters
| name | type | default | description |
|---|---|---|---|
| hour | Integer | — | |
| minute | Integer | — |
Returns
| result | TimeOnly |
Overload 2 of 4
CreateTimeOnly -> TimeOnly
hour: Integer
minute: Integer
second: IntegerTimeOnly CreateTimeOnly(int hour, int minute, int second)
Creates a System.TimeOnly time of day from an hour, minute and second.
Parameters
| name | type | default | description |
|---|---|---|---|
| hour | Integer | — | The hour, from 0 to 23. |
| minute | Integer | — | The minute, from 0 to 59. |
| second | Integer | — | The second, from 0 to 59. |
Returns
| result | TimeOnly |
Overload 3 of 4
CreateTimeOnly -> TimeOnly
hour: Integer
minute: Integer
second: Integer
millisecond: IntegerTimeOnly CreateTimeOnly(
int hour,
int minute,
int second,
int millisecond)Creates a System.TimeOnly time of day from an hour, minute, second and millisecond.
Parameters
| name | type | default | description |
|---|---|---|---|
| hour | Integer | — | The hour, from 0 to 23. |
| minute | Integer | — | The minute, from 0 to 59. |
| second | Integer | — | The second, from 0 to 59. |
| millisecond | Integer | — | The millisecond, from 0 to 999. |
Returns
| result | TimeOnly |
Overload 4 of 4
CreateTimeOnly -> TimeOnly
hour: Integer
minute: Integer
second: Integer
millisecond: Integer
microsecond: IntegerTimeOnly 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
| name | type | default | description |
|---|---|---|---|
| hour | Integer | — | The hour, from 0 to 23. |
| minute | Integer | — | The minute, from 0 to 59. |
| second | Integer | — | The second, from 0 to 59. |
| millisecond | Integer | — | The millisecond, from 0 to 999. |
| microsecond | Integer | — | The microsecond, from 0 to 999. |
Returns
| result | TimeOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Create Time Span
FunctionOverload 1 of 5
CreateTimeSpan(ticks: Large Integer) -> TimeSpan
TimeSpan CreateTimeSpan(long ticks)
Creates a TimeSpan from ticks.
Parameters
| name | type | default | description |
|---|---|---|---|
| ticks | Large Integer | — |
Returns
| result | TimeSpan |
Overload 2 of 5
CreateTimeSpan -> TimeSpan
hours: Integer
minutes: Integer
seconds: IntegerTimeSpan CreateTimeSpan(int hours, int minutes, int seconds)
Creates a System.TimeSpan duration from hours, minutes and seconds.
Parameters
| name | type | default | description |
|---|---|---|---|
| hours | Integer | — | The number of hours. |
| minutes | Integer | — | The number of minutes. |
| seconds | Integer | — | The number of seconds. |
Returns
| result | TimeSpan |
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
CreateTimeSpan -> TimeSpan
days: Integer
hours: Integer
minutes: Integer
seconds: IntegerTimeSpan CreateTimeSpan(
int days,
int hours,
int minutes,
int seconds)Creates a System.TimeSpan duration from days, hours, minutes and seconds.
Parameters
| name | type | default | description |
|---|---|---|---|
| days | Integer | — | The number of days. |
| hours | Integer | — | The number of hours. |
| minutes | Integer | — | The number of minutes. |
| seconds | Integer | — | The number of seconds. |
Returns
| result | TimeSpan |
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
CreateTimeSpan -> TimeSpan
days: Integer
hours: Integer
minutes: Integer
seconds: Integer
milliseconds: IntegerTimeSpan CreateTimeSpan(
int days,
int hours,
int minutes,
int seconds,
int milliseconds)Creates a System.TimeSpan duration from days, hours, minutes, seconds and milliseconds.
Parameters
| name | type | default | description |
|---|---|---|---|
| days | Integer | — | The number of days. |
| hours | Integer | — | The number of hours. |
| minutes | Integer | — | The number of minutes. |
| seconds | Integer | — | The number of seconds. |
| milliseconds | Integer | — | The number of milliseconds. |
Returns
| result | TimeSpan |
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
CreateTimeSpan -> TimeSpan
days: Integer
hours: Integer
minutes: Integer
seconds: Integer
milliseconds: Integer
microseconds: IntegerTimeSpan 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
| name | type | default | description |
|---|---|---|---|
| days | Integer | — | The number of days. |
| hours | Integer | — | The number of hours. |
| minutes | Integer | — | The number of minutes. |
| seconds | Integer | — | The number of seconds. |
| milliseconds | Integer | — | The number of milliseconds. |
| microseconds | Integer | — | The number of microseconds. |
Returns
| result | TimeSpan |
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
FunctionGets the date component of a DateTime.
Date(value: Date & Time) -> Date & Time
DateTime Date(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — |
Returns
| result | Date & 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
FunctionTakes the calendar date of a System.DateTime and drops its time of day.
DateOnlyFromDateTime(value: Date & Time) -> DateOnly
DateOnly DateOnlyFromDateTime(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to take the date from; its kind is ignored and no time-zone conversion is made. |
Returns
| result | DateOnly |
- 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
FunctionCreates a System.DateOnly from a day number, the count of days since 0001-01-01 in the Gregorian calendar.
DateOnlyFromDayNumber(dayNumber: Integer) -> DateOnly
DateOnly DateOnlyFromDayNumber(int dayNumber)
Parameters
| name | type | default | description |
|---|---|---|---|
| dayNumber | Integer | — | 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
| result | DateOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Day
FunctionOverload 1 of 2
Day(value: Date & Time) -> Integer
int Day(DateTime value)
Gets the day of the month of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Day(value: DateOnly) -> Integer
int Day(DateOnly value)
Gets the day of the month of a date.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Day Number
FunctionGets a date as a single day number, the count of days since 0001-01-01; subtracting two day numbers gives the days between them.
DayNumber(value: DateOnly) -> Integer
int DayNumber(DateOnly value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Day Of Week
FunctionOverload 1 of 2
DayOfWeek(value: Date & Time) -> DayOfWeek
DayOfWeek DayOfWeek(DateTime value)
Gets the weekday of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | DayOfWeek |
Overload 2 of 2
DayOfWeek(value: DateOnly) -> DayOfWeek
DayOfWeek DayOfWeek(DateOnly value)
Gets the weekday of a date.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date. |
Returns
| result | DayOfWeek |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Day Of Year
FunctionOverload 1 of 2
DayOfYear(value: Date & Time) -> Integer
int DayOfYear(DateTime value)
Gets how far into its year a date and time falls, counted in days.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
DayOfYear(value: DateOnly) -> Integer
int DayOfYear(DateOnly value)
Gets how far into its year a date falls, counted in days.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Days
FunctionGets the day component of a TimeSpan.
Days(value: TimeSpan) -> Integer
int Days(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Days Between
FunctionCounts the calendar days from one date to another.
DaysBetween(left: DateOnly, right: DateOnly) -> Integer
int DaysBetween(DateOnly left, DateOnly right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | The later date. |
| right | DateOnly | — | The earlier date. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Days In Month
FunctionGives the number of days in a month of a given year in the Gregorian calendar, taking leap years into account.
DaysInMonth(year: Integer, month: Integer) -> Integer
int DaysInMonth(int year, int month)
Parameters
| name | type | default | description |
|---|---|---|---|
| year | Integer | — | The year, from 1 to 9999. |
| month | Integer | — | The month, from 1 to 12; any other value throws an System.ArgumentOutOfRangeException. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Deconstruct
FunctionOverload 1 of 5
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — |
Returns
| year | Integer |
| month | Integer |
| day | Integer |
Overload 2 of 5
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to split; its kind is dropped and no time-zone conversion is made. |
Returns
| date | DateOnly |
| time | TimeOnly |
Overload 3 of 5
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
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date to split. |
Returns
| year | Integer |
| month | Integer |
| day | Integer |
Overload 4 of 5
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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day to split. |
Returns
| hour | Integer |
| minute | Integer |
| second | Integer |
Overload 5 of 5
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
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration to split. |
Returns
| days | Integer |
| hours | Integer |
| minutes | Integer |
| seconds | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Divide
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration to divide. |
| divisor | Number | — | The number to divide by; NaN throws an System.ArgumentException, and zero throws an System.OverflowException. |
Returns
| result | TimeSpan |
Overload 2 of 2
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
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | The duration to divide. |
| right | TimeSpan | — | The duration to divide by; zero gives infinity, or NaN when Left is also zero, instead of an error. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Duration
FunctionGives the absolute length of a duration, dropping its sign.
Duration(value: TimeSpan) -> TimeSpan
TimeSpan Duration(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration; TimeSpan.MinValue throws an System.OverflowException because its absolute value does not fit. |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Equals
FunctionOverload 1 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | Date & Time | — | The first date and time. |
| right | Date & Time | — | The second date and time. |
Returns
| result | Truth |
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
Equals(left: DateOnly, right: DateOnly) -> Truth
bool Equals(DateOnly left, DateOnly right)
Checks whether two dates are the same day.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | The first date. |
| right | DateOnly | — | The second date. |
Returns
| result | Truth |
Overload 3 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeOnly | — | The first time of day. |
| right | TimeOnly | — | The second time of day. |
Returns
| result | Truth |
Overload 4 of 4
Equals(left: TimeSpan, right: TimeSpan) -> Truth
bool Equals(TimeSpan left, TimeSpan right)
Checks whether two durations are the same length, to the tick.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | The first duration. |
| right | TimeSpan | — | The second duration. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
From Binary
FunctionRestores a date and time, including its kind, from a number made by DateTimeRoutines.ToBinary.
FromBinary(value: Large Integer) -> Date & Time
DateTime FromBinary(long value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Large Integer | — | The packed number; one that does not encode a valid date throws an System.ArgumentException. |
Returns
| result | Date & 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
FunctionOverload 1 of 2
FromDateOnlyTimeOnly -> Date & Time
date: DateOnly
time: TimeOnlyDateTime FromDateOnlyTimeOnly(DateOnly date, TimeOnly time)
Combines DateOnly and TimeOnly into a DateTime.
Parameters
| name | type | default | description |
|---|---|---|---|
| date | DateOnly | — | |
| time | TimeOnly | — |
Returns
| result | Date & Time |
Overload 2 of 2
FromDateOnlyTimeOnly -> Date & Time
date: DateOnly
time: TimeOnly
kind: DateTimeKindDateTime 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
| name | type | default | description |
|---|---|---|---|
| date | DateOnly | — | The calendar date. |
| time | TimeOnly | — | The time of day on that date. |
| kind | DateTimeKind | — | Whether the result is local time, UTC or unspecified. |
Returns
| result | Date & 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
FunctionConverts a Windows file time to a date and time in this computer's local time zone.
FromFileTime(value: Large Integer) -> Date & Time
DateTime FromFileTime(long value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Large 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
| result | Date & 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
FunctionConverts a Windows file time to a UTC date and time.
FromFileTimeUtc(value: Large Integer) -> Date & Time
DateTime FromFileTimeUtc(long value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Large 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
| result | Date & 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
FunctionConverts an OLE Automation date, the number format Excel and other Office applications use for dates, to a date and time.
FromOADate(value: Number) -> Date & Time
DateTime FromOADate(double value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — | 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
| result | Date & 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
FunctionConverts a Unix timestamp in milliseconds, as used by JavaScript and many web APIs, back to a UTC date and time.
FromUnixTimeMilliseconds(milliseconds: Large Integer) -> Date & Time
DateTime FromUnixTimeMilliseconds(long milliseconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| milliseconds | Large 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
| result | Date & 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
FunctionConverts a Unix timestamp in seconds back to a UTC date and time.
FromUnixTimeSeconds(seconds: Large Integer) -> Date & Time
DateTime FromUnixTimeSeconds(long seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| seconds | Large 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
| result | Date & 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
FunctionGets the largest possible value of System.DateOnly.
DateOnlyMaxValue() -> DateOnly
DateOnly DateOnlyMaxValue()
Returns
| result | DateOnly |
- 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
FunctionGets the smallest possible value of System.DateOnly.
DateOnlyMinValue() -> DateOnly
DateOnly DateOnlyMinValue()
Returns
| result | DateOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Max Value
FunctionGets the largest possible value of System.DateTime.
MaxValue() -> Date & Time
DateTime MaxValue()
Returns
| result | Date & Time |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Min Value
FunctionGets the smallest possible value of System.DateTime.
MinValue() -> Date & Time
DateTime MinValue()
Returns
| result | Date & 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
FunctionGets the number of nanoseconds in one tick.
NanosecondsPerTick() -> Large Integer
long NanosecondsPerTick()
Returns
| result | Large Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Now
FunctionGets the current local date and time.
Now() -> Date & Time
DateTime Now()
Returns
| result | Date & 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
FunctionGets the number of ticks in one day.
TicksPerDay() -> Large Integer
long TicksPerDay()
Returns
| result | Large 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
FunctionGets the number of ticks in one hour.
TicksPerHour() -> Large Integer
long TicksPerHour()
Returns
| result | Large 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
FunctionGets the number of ticks in one microsecond.
TicksPerMicrosecond() -> Large Integer
long TicksPerMicrosecond()
Returns
| result | Large 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
FunctionGets the number of ticks in one millisecond.
TicksPerMillisecond() -> Large Integer
long TicksPerMillisecond()
Returns
| result | Large 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
FunctionGets the number of ticks in one minute.
TicksPerMinute() -> Large Integer
long TicksPerMinute()
Returns
| result | Large 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
FunctionGets the number of ticks in one second.
TicksPerSecond() -> Large Integer
long TicksPerSecond()
Returns
| result | Large 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
FunctionGets the largest possible value of System.TimeOnly.
TimeOnlyMaxValue() -> TimeOnly
TimeOnly TimeOnlyMaxValue()
Returns
| result | TimeOnly |
- 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
FunctionGets the smallest possible value of System.TimeOnly.
TimeOnlyMinValue() -> TimeOnly
TimeOnly TimeOnlyMinValue()
Returns
| result | TimeOnly |
- 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
FunctionGets the largest possible value of System.TimeSpan.
TimeSpanMaxValue() -> TimeSpan
TimeSpan TimeSpanMaxValue()
Returns
| result | TimeSpan |
- 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
FunctionGets the smallest possible value of System.TimeSpan.
TimeSpanMinValue() -> TimeSpan
TimeSpan TimeSpanMinValue()
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Time Span Zero
FunctionGets a zero-length System.TimeSpan.
TimeSpanZero() -> TimeSpan
TimeSpan TimeSpanZero()
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Today
FunctionGets the current local date with the time set to midnight.
Today() -> Date & Time
DateTime Today()
Returns
| result | Date & 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
FunctionGets the Unix epoch date and time: 1970-01-01 00:00:00 UTC.
UnixEpoch() -> Date & Time
DateTime UnixEpoch()
Returns
| result | Date & 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
FunctionGets the current UTC date and time.
UtcNow() -> Date & Time
DateTime UtcNow()
Returns
| result | Date & 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
FunctionOverload 1 of 4
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to format. |
Returns
| result | Text Array |
Overload 2 of 4
GetDateTimeFormats -> Text Array
value: Date & Time
provider: IFormatProviderstring[] GetDateTimeFormats(
DateTime value,
IFormatProvider provider)Writes a date and time in every standard format of a given culture.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to format. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text Array |
Overload 3 of 4
GetDateTimeFormats -> Text Array
value: Date & Time
format: Charstring[] GetDateTimeFormats(DateTime value, char format)
Writes a date and time in every pattern that one standard format specifier has in the current culture.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to format. |
| format | Char | — | A standard format specifier such as 'd', 'D', 't' or 'G'; one that is not a standard specifier throws a System.FormatException. |
Returns
| result | Text Array |
Overload 4 of 4
GetDateTimeFormats -> Text Array
value: Date & Time
format: Char
provider: IFormatProviderstring[] 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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to format. |
| format | Char | — | A standard format specifier such as 'd', 'D', 't' or 'G'; one that is not a standard specifier throws a System.FormatException. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Greater Than
FunctionOverload 1 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | Date & Time | — | The date and time to test. |
| right | Date & Time | — | The date and time to compare against. |
Returns
| result | Truth |
Remarks
Only the tick values are compared and DateTime.Kind is ignored.
Overload 2 of 4
GreaterThan(left: DateOnly, right: DateOnly) -> Truth
bool GreaterThan(DateOnly left, DateOnly right)
Checks whether one date comes after another.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | The date to test. |
| right | DateOnly | — | The date to compare against. |
Returns
| result | Truth |
Overload 3 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeOnly | — | The time of day to test. |
| right | TimeOnly | — | The time of day to compare against. |
Returns
| result | Truth |
Overload 4 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | The duration to test. |
| right | TimeSpan | — | The duration to compare against. |
Returns
| result | Truth |
- 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
FunctionOverload 1 of 4
GreaterThanOrEqual -> Truth
left: Date & Time
right: Date & Timebool GreaterThanOrEqual(DateTime left, DateTime right)
Checks whether one date and time is later than or the same as another.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Date & Time | — | The date and time to test. |
| right | Date & Time | — | The date and time to compare against. |
Returns
| result | Truth |
Remarks
Only the tick values are compared and DateTime.Kind is ignored.
Overload 2 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | The date to test. |
| right | DateOnly | — | The date to compare against. |
Returns
| result | Truth |
Overload 3 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeOnly | — | The time of day to test. |
| right | TimeOnly | — | The time of day to compare against. |
Returns
| result | Truth |
Overload 4 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | The duration to test. |
| right | TimeSpan | — | The duration to compare against. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Hour
FunctionOverload 1 of 2
Hour(value: Date & Time) -> Integer
int Hour(DateTime value)
Gets the hour of a date and time on the 24-hour clock.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Hour(value: TimeOnly) -> Integer
int Hour(TimeOnly value)
Gets the hour component of a TimeOnly.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Hours
FunctionGets the hours part of a duration, what is left after whole days are taken out; use DateTimeRoutines.TotalHours for the whole duration in hours.
Hours(value: TimeSpan) -> Integer
int Hours(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Is Between
FunctionChecks whether a time of day falls within a range, including ranges that cross midnight such as 22:00 to 06:00.
IsBetween -> Truth
value: TimeOnly
start: TimeOnly
end: TimeOnlybool IsBetween(TimeOnly value, TimeOnly start, TimeOnly end)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day to test. |
| start | TimeOnly | — | The start of the range, included. |
| end | TimeOnly | — | The end of the range, excluded; when earlier than Start the range runs through midnight. |
Returns
| result | Truth |
- 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
FunctionChecks whether a date and time falls within daylight saving time in this computer's local time zone.
IsDaylightSavingTime(value: Date & Time) -> Truth
bool IsDaylightSavingTime(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time; a UTC value always gives false, and a local or unspecified value is read as local time. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Is Leap Year
FunctionReturns whether the given year is a leap year.
IsLeapYear(year: Integer) -> Truth
bool IsLeapYear(int year)
Parameters
| name | type | default | description |
|---|---|---|---|
| year | Integer | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Kind
FunctionTells whether a date and time is marked as local time, UTC, or unspecified.
Kind(value: Date & Time) -> DateTimeKind
DateTimeKind Kind(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to inspect. |
Returns
| result | DateTimeKind |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Less Than
FunctionOverload 1 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | Date & Time | — | The date and time to test. |
| right | Date & Time | — | The date and time to compare against. |
Returns
| result | Truth |
Remarks
Only the tick values are compared and DateTime.Kind is ignored.
Overload 2 of 4
LessThan(left: DateOnly, right: DateOnly) -> Truth
bool LessThan(DateOnly left, DateOnly right)
Checks whether one date comes before another.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | The date to test. |
| right | DateOnly | — | The date to compare against. |
Returns
| result | Truth |
Overload 3 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeOnly | — | The time of day to test. |
| right | TimeOnly | — | The time of day to compare against. |
Returns
| result | Truth |
Overload 4 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | The duration to test. |
| right | TimeSpan | — | The duration to compare against. |
Returns
| result | Truth |
- 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
FunctionOverload 1 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | Date & Time | — | The date and time to test. |
| right | Date & Time | — | The date and time to compare against. |
Returns
| result | Truth |
Remarks
Only the tick values are compared and DateTime.Kind is ignored.
Overload 2 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | The date to test. |
| right | DateOnly | — | The date to compare against. |
Returns
| result | Truth |
Overload 3 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeOnly | — | The time of day to test. |
| right | TimeOnly | — | The time of day to compare against. |
Returns
| result | Truth |
Overload 4 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | The duration to test. |
| right | TimeSpan | — | The duration to compare against. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Microsecond
FunctionOverload 1 of 2
Microsecond(value: Date & Time) -> Integer
int Microsecond(DateTime value)
Gets the microsecond part of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Microsecond(value: TimeOnly) -> Integer
int Microsecond(TimeOnly value)
Gets the microsecond part of a time of day.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Microseconds
FunctionGets the microseconds part of a duration, what is left after whole milliseconds are taken out; use DateTimeRoutines.TotalMicroseconds for the whole duration in microseconds.
Microseconds(value: TimeSpan) -> Integer
int Microseconds(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Millisecond
FunctionOverload 1 of 2
Millisecond(value: Date & Time) -> Integer
int Millisecond(DateTime value)
Gets the millisecond part of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Millisecond(value: TimeOnly) -> Integer
int Millisecond(TimeOnly value)
Gets the millisecond part of a time of day.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Milliseconds
FunctionGets the milliseconds part of a duration, what is left after whole seconds are taken out; use DateTimeRoutines.TotalMilliseconds for the whole duration in milliseconds.
Milliseconds(value: TimeSpan) -> Integer
int Milliseconds(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Minute
FunctionOverload 1 of 2
Minute(value: Date & Time) -> Integer
int Minute(DateTime value)
Gets the minute of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Minute(value: TimeOnly) -> Integer
int Minute(TimeOnly value)
Gets the minute of a time of day.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Minutes
FunctionGets the minutes part of a duration, what is left after whole hours are taken out; use DateTimeRoutines.TotalMinutes for the whole duration in minutes.
Minutes(value: TimeSpan) -> Integer
int Minutes(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Month
FunctionOverload 1 of 2
Month(value: Date & Time) -> Integer
int Month(DateTime value)
Gets the month of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Month(value: DateOnly) -> Integer
int Month(DateOnly value)
Gets the month of a date.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Multiply
FunctionScales a duration by a factor, for example to get three times or half of it.
Multiply(value: TimeSpan, factor: Number) -> TimeSpan
TimeSpan Multiply(TimeSpan value, double factor)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration to scale. |
| factor | Number | — | The multiplier, which may be fractional or negative; NaN throws an System.ArgumentException. |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Nanosecond
FunctionOverload 1 of 2
Nanosecond(value: Date & Time) -> Integer
int Nanosecond(DateTime value)
Gets the nanosecond part of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Nanosecond(value: TimeOnly) -> Integer
int Nanosecond(TimeOnly value)
Gets the nanosecond part of a time of day.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Nanoseconds
FunctionGets the nanoseconds part of a duration, what is left after whole microseconds are taken out.
Nanoseconds(value: TimeSpan) -> Integer
int Nanoseconds(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Negate
FunctionFlips the sign of a duration, so 5 minutes becomes -5 minutes and the reverse.
Negate(value: TimeSpan) -> TimeSpan
TimeSpan Negate(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration to negate; TimeSpan.MinValue throws an System.OverflowException because its negation does not fit. |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Not Equals
FunctionOverload 1 of 4
NotEquals(left: Date & Time, right: Date & Time) -> Truth
bool NotEquals(DateTime left, DateTime right)
Checks whether two date and time values differ.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Date & Time | — | The first date and time. |
| right | Date & Time | — | The second date and time. |
Returns
| result | Truth |
Remarks
Only the tick values are compared and DateTime.Kind is ignored.
Overload 2 of 4
NotEquals(left: DateOnly, right: DateOnly) -> Truth
bool NotEquals(DateOnly left, DateOnly right)
Checks whether two dates are different days.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | The first date. |
| right | DateOnly | — | The second date. |
Returns
| result | Truth |
Overload 3 of 4
NotEquals(left: TimeOnly, right: TimeOnly) -> Truth
bool NotEquals(TimeOnly left, TimeOnly right)
Checks whether two times of day differ.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | TimeOnly | — | The first time of day. |
| right | TimeOnly | — | The second time of day. |
Returns
| result | Truth |
Overload 4 of 4
NotEquals(left: TimeSpan, right: TimeSpan) -> Truth
bool NotEquals(TimeSpan left, TimeSpan right)
Checks whether two durations differ in length.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | The first duration. |
| right | TimeSpan | — | The second duration. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Parse
FunctionOverload 1 of 3
Parse(s: Text) -> Date & Time
DateTime Parse(string s)
Parses a string into a DateTime.
Parameters
| name | type | default | description |
|---|---|---|---|
| s | Text | — |
Returns
| result | Date & Time |
Overload 2 of 3
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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that is not a date and time throws a System.FormatException. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Date & Time |
Overload 3 of 3
Parse -> Date & Time
s: Text
provider: IFormatProvider
styles: DateTimeStylesDateTime 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that is not a date and time throws a System.FormatException. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | Options such as DateTimeStyles.AdjustToUniversal or DateTimeStyles.AssumeUniversal; a contradictory combination throws an System.ArgumentException. |
Returns
| result | Date & 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
FunctionOverload 1 of 3
ParseDateOnly(s: Text) -> DateOnly
DateOnly ParseDateOnly(string s)
Parses a string into a DateOnly.
Parameters
| name | type | default | description |
|---|---|---|---|
| s | Text | — |
Returns
| result | DateOnly |
Overload 2 of 3
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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | DateOnly |
Overload 3 of 3
ParseDateOnly -> DateOnly
s: Text
provider: IFormatProvider
styles: DateTimeStylesDateOnly 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException. |
Returns
| result | DateOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Parse Exact
FunctionOverload 1 of 3
ParseExact -> Date & Time
s: Text
format: Text
provider: IFormatProviderDateTime 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException. |
| format | Text | — | The standard or custom format the text must match. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Date & Time |
Overload 2 of 3
ParseExact -> Date & Time
s: Text
format: Text
provider: IFormatProvider
styles: DateTimeStylesDateTime 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException. |
| format | Text | — | The standard or custom format the text must match. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | Options such as DateTimeStyles.AllowWhiteSpaces or DateTimeStyles.AssumeUniversal; a contradictory combination throws an System.ArgumentException. |
Returns
| result | Date & Time |
Overload 3 of 3
ParseExact -> Date & Time
s: Text
formats: Text Array
provider: IFormatProvider
styles: DateTimeStylesDateTime 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that matches none of the formats throws a System.FormatException. |
| formats | Text Array | — | The formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | Options such as DateTimeStyles.AllowWhiteSpaces or DateTimeStyles.AssumeUniversal; a contradictory combination throws an System.ArgumentException. |
Returns
| result | Date & 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
FunctionOverload 1 of 3
ParseExactDateOnly -> DateOnly
s: Text
format: Text
provider: IFormatProviderDateOnly ParseExactDateOnly(
string s,
string format,
IFormatProvider provider)Reads a date from text that must match one exact format, such as "yyyy-MM-dd".
Parameters
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException. |
| format | Text | — | The standard or custom date format the text must match. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | DateOnly |
Overload 2 of 3
ParseExactDateOnly -> DateOnly
s: Text
format: Text
provider: IFormatProvider
styles: DateTimeStylesDateOnly 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException. |
| format | Text | — | The standard or custom date format the text must match. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException. |
Returns
| result | DateOnly |
Overload 3 of 3
ParseExactDateOnly -> DateOnly
s: Text
formats: Text Array
provider: IFormatProvider
styles: DateTimeStylesDateOnly 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that matches none of the formats throws a System.FormatException. |
| formats | Text Array | — | The date formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException. |
Returns
| result | DateOnly |
- 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
FunctionOverload 1 of 3
ParseExactTimeOnly -> TimeOnly
s: Text
format: Text
provider: IFormatProviderTimeOnly 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException. |
| format | Text | — | The standard or custom time format the text must match. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | TimeOnly |
Overload 2 of 3
ParseExactTimeOnly -> TimeOnly
s: Text
format: Text
provider: IFormatProvider
styles: DateTimeStylesTimeOnly 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that does not match the format throws a System.FormatException. |
| format | Text | — | The standard or custom time format the text must match. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException. |
Returns
| result | TimeOnly |
Overload 3 of 3
ParseExactTimeOnly -> TimeOnly
s: Text
formats: Text Array
provider: IFormatProvider
styles: DateTimeStylesTimeOnly 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null throws an System.ArgumentNullException and text that matches none of the formats throws a System.FormatException. |
| formats | Text Array | — | The time formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException. |
Returns
| result | TimeOnly |
- 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
FunctionOverload 1 of 4
ParseExactTimeSpan -> TimeSpan
input: Text
format: Text
provider: IFormatProviderTimeSpan 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
| name | type | default | description |
|---|---|---|---|
| input | Text | — | 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. |
| format | Text | — | The standard or custom format the text must match. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | TimeSpan |
Overload 2 of 4
ParseExactTimeSpan -> TimeSpan
input: Text
format: Text
provider: IFormatProvider
styles: TimeSpanStylesTimeSpan 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
| name | type | default | description |
|---|---|---|---|
| input | Text | — | 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. |
| format | Text | — | The standard or custom format the text must match. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | TimeSpanStyles | — | TimeSpanStyles.AssumeNegative makes a custom-format result negative; TimeSpanStyles.None leaves it as written. |
Returns
| result | TimeSpan |
Overload 3 of 4
ParseExactTimeSpan -> TimeSpan
input: Text
formats: Text Array
provider: IFormatProviderTimeSpan 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
| name | type | default | description |
|---|---|---|---|
| input | Text | — | 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. |
| formats | Text Array | — | The formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | TimeSpan |
Overload 4 of 4
ParseExactTimeSpan -> TimeSpan
input: Text
formats: Text Array
provider: IFormatProvider
styles: TimeSpanStylesTimeSpan 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
| name | type | default | description |
|---|---|---|---|
| input | Text | — | 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. |
| formats | Text Array | — | The formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | TimeSpanStyles | — | TimeSpanStyles.AssumeNegative makes a custom-format result negative; TimeSpanStyles.None leaves it as written. |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Parse Time Only
FunctionOverload 1 of 3
ParseTimeOnly(s: Text) -> TimeOnly
TimeOnly ParseTimeOnly(string s)
Parses a string into a TimeOnly.
Parameters
| name | type | default | description |
|---|---|---|---|
| s | Text | — |
Returns
| result | TimeOnly |
Overload 2 of 3
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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | TimeOnly |
Overload 3 of 3
ParseTimeOnly -> TimeOnly
s: Text
provider: IFormatProvider
styles: DateTimeStylesTimeOnly 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style throws an System.ArgumentException. |
Returns
| result | TimeOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Parse Time Span
FunctionOverload 1 of 2
ParseTimeSpan(s: Text) -> TimeSpan
TimeSpan ParseTimeSpan(string s)
Parses a string into a TimeSpan.
Parameters
| name | type | default | description |
|---|---|---|---|
| s | Text | — |
Returns
| result | TimeSpan |
Overload 2 of 2
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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Second
FunctionOverload 1 of 2
Second(value: Date & Time) -> Integer
int Second(DateTime value)
Gets the second of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Second(value: TimeOnly) -> Integer
int Second(TimeOnly value)
Gets the second of a time of day.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Seconds
FunctionGets the seconds part of a duration, what is left after whole minutes are taken out; use DateTimeRoutines.TotalSeconds for the whole duration in seconds.
Seconds(value: TimeSpan) -> Integer
int Seconds(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Specify Kind
FunctionCreates a new System.DateTime value with the same ticks as the specified value, but with the specified System.DateTimeKind.
SpecifyKind -> Date & Time
value: Date & Time
kind: DateTimeKindDateTime SpecifyKind(DateTime value, DateTimeKind kind)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | |
| kind | DateTimeKind | — |
Returns
| result | Date & Time |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Subtract
FunctionOverload 1 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | Date & Time | — | The later date and time. |
| right | Date & Time | — | The earlier date and time. |
Returns
| result | TimeSpan |
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
Subtract(value: Date & Time, delta: TimeSpan) -> Date & Time
DateTime Subtract(DateTime value, TimeSpan delta)
Moves a date and time back by a duration.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The starting date and time; its kind is kept. |
| delta | TimeSpan | — | The duration to subtract; a negative duration moves forward. |
Returns
| result | Date & Time |
Overload 3 of 4
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
| name | type | default | description |
|---|---|---|---|
| left | TimeOnly | — | The time of day to reach. |
| right | TimeOnly | — | The time of day to start from. |
Returns
| result | TimeSpan |
Remarks
The result is never negative: from 23:00 to 01:00 is 2 hours, not -22 hours.
Overload 4 of 4
Subtract(left: TimeSpan, right: TimeSpan) -> TimeSpan
TimeSpan Subtract(TimeSpan left, TimeSpan right)
Subtracts one duration from another.
Parameters
| name | type | default | description |
|---|---|---|---|
| left | TimeSpan | — | The duration to subtract from. |
| right | TimeSpan | — | The duration to subtract. |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Ticks
FunctionOverload 1 of 3
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Large Integer |
Overload 2 of 3
Ticks(value: TimeOnly) -> Large Integer
long Ticks(TimeOnly value)
Gets a time of day as the number of ticks since midnight.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day. |
Returns
| result | Large Integer |
Overload 3 of 3
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
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Large Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Time Between
FunctionMeasures the time from one date to another as a System.TimeSpan of whole days.
TimeBetween(left: DateOnly, right: DateOnly) -> TimeSpan
TimeSpan TimeBetween(DateOnly left, DateOnly right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | DateOnly | — | The later date. |
| right | DateOnly | — | The earlier date. |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Time Of Day
FunctionGets the time of day of a date and time as the duration since midnight.
TimeOfDay(value: Date & Time) -> TimeSpan
TimeSpan TimeOfDay(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | TimeSpan |
- 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
FunctionTakes the time of day of a System.DateTime and drops its date.
TimeOnlyFromDateTime(value: Date & Time) -> TimeOnly
TimeOnly TimeOnlyFromDateTime(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to take the time of day from; its kind is ignored and no time-zone conversion is made. |
Returns
| result | TimeOnly |
- 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
FunctionCreates a System.TimeOnly time of day from the number of ticks since midnight.
TimeOnlyFromTicks(ticks: Large Integer) -> TimeOnly
TimeOnly TimeOnlyFromTicks(long ticks)
Parameters
| name | type | default | description |
|---|---|---|---|
| ticks | Large 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
| result | TimeOnly |
- 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
FunctionTurns a duration since midnight into a System.TimeOnly time of day, for example 13 hours into 13:00.
TimeOnlyFromTimeSpan(value: TimeSpan) -> TimeOnly
TimeOnly TimeOnlyFromTimeSpan(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The time elapsed since midnight; must be at least zero and less than one day, otherwise an System.ArgumentOutOfRangeException is thrown. |
Returns
| result | TimeOnly |
- 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
FunctionCreates a System.TimeSpan duration from a number of days, which may be fractional or negative (1.5 is a day and a half).
TimeSpanFromDays(days: Number) -> TimeSpan
TimeSpan TimeSpanFromDays(double days)
Parameters
| name | type | default | description |
|---|---|---|---|
| days | Number | — | The number of days; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException. |
Returns
| result | TimeSpan |
- 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
FunctionCreates a System.TimeSpan duration from a number of hours, which may be fractional or negative.
TimeSpanFromHours(hours: Number) -> TimeSpan
TimeSpan TimeSpanFromHours(double hours)
Parameters
| name | type | default | description |
|---|---|---|---|
| hours | Number | — | The number of hours; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException. |
Returns
| result | TimeSpan |
- 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
FunctionCreates a System.TimeSpan duration from a number of microseconds, which may be fractional or negative.
TimeSpanFromMicroseconds(microseconds: Number) -> TimeSpan
TimeSpan TimeSpanFromMicroseconds(double microseconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| microseconds | Number | — | The number of microseconds; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException. |
Returns
| result | TimeSpan |
- 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
FunctionCreates a System.TimeSpan duration from a number of milliseconds, which may be fractional or negative.
TimeSpanFromMilliseconds(milliseconds: Number) -> TimeSpan
TimeSpan TimeSpanFromMilliseconds(double milliseconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| milliseconds | Number | — | The number of milliseconds; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException. |
Returns
| result | TimeSpan |
- 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
FunctionCreates a System.TimeSpan duration from a number of minutes, which may be fractional or negative.
TimeSpanFromMinutes(minutes: Number) -> TimeSpan
TimeSpan TimeSpanFromMinutes(double minutes)
Parameters
| name | type | default | description |
|---|---|---|---|
| minutes | Number | — | The number of minutes; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException. |
Returns
| result | TimeSpan |
- 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
FunctionCreates a System.TimeSpan duration from a number of seconds, which may be fractional or negative.
TimeSpanFromSeconds(seconds: Number) -> TimeSpan
TimeSpan TimeSpanFromSeconds(double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| seconds | Number | — | The number of seconds; NaN throws an System.ArgumentException and a value beyond the System.TimeSpan range throws an System.OverflowException. |
Returns
| result | TimeSpan |
- 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
FunctionCreates a System.TimeSpan duration from a number of ticks, where one tick is 100 nanoseconds.
TimeSpanFromTicks(ticks: Large Integer) -> TimeSpan
TimeSpan TimeSpanFromTicks(long ticks)
Parameters
| name | type | default | description |
|---|---|---|---|
| ticks | Large Integer | — | The number of ticks; may be negative. |
Returns
| result | TimeSpan |
- 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
FunctionTurns a duration since midnight into a System.TimeOnly time of day, for example 13 hours into 13:00.
TimeSpanToTimeOnly(value: TimeSpan) -> TimeOnly
TimeOnly TimeSpanToTimeOnly(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The time elapsed since midnight; must be at least zero and less than one day, otherwise an System.ArgumentOutOfRangeException is thrown. |
Returns
| result | TimeOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
To Binary
FunctionPacks a date and time, including its kind, into one 64-bit number for storage; DateTimeRoutines.FromBinary turns it back.
ToBinary(value: Date & Time) -> Large Integer
long ToBinary(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to pack. |
Returns
| result | Large 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
FunctionTakes the calendar date of a System.DateTime and drops its time of day.
ToDateOnly(value: Date & Time) -> DateOnly
DateOnly ToDateOnly(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to take the date from; its kind is ignored and no time-zone conversion is made. |
Returns
| result | DateOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
To Date Time
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| date | DateOnly | — | The calendar date. |
| time | TimeOnly | — | The time of day on that date. |
Returns
| result | Date & Time |
Overload 2 of 2
ToDateTime -> Date & Time
date: DateOnly
time: TimeOnly
kind: DateTimeKindDateTime 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
| name | type | default | description |
|---|---|---|---|
| date | DateOnly | — | The calendar date. |
| time | TimeOnly | — | The time of day on that date. |
| kind | DateTimeKind | — | Whether the result is local time, UTC or unspecified. |
Returns
| result | Date & 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
FunctionConverts a date and time to a Windows file time: the number of 100-nanosecond intervals since 1601-01-01 00:00:00 UTC.
ToFileTime(value: Date & Time) -> Large Integer
long ToFileTime(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time; a local or unspecified value is treated as local time and converted to UTC first. |
Returns
| result | Large 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
FunctionConverts a date and time to a Windows file time, treating an unspecified value as already being UTC.
ToFileTimeUtc(value: Date & Time) -> Large Integer
long ToFileTimeUtc(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & 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
| result | Large 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
FunctionConverts the specified System.DateTime value to local time.
ToLocalTime(value: Date & Time) -> Date & Time
DateTime ToLocalTime(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — |
Returns
| result | Date & 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
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time; its time of day is not shown. |
Returns
| result | Text |
Overload 2 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date to format. |
Returns
| result | Text |
- 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
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time; its date is not shown. |
Returns
| result | Text |
Overload 2 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day to format. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
To OA Date
FunctionConverts a date and time to an OLE Automation date, the number format Excel and other Office applications use for dates.
ToOADate(value: Date & Time) -> Number
double ToOADate(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time; DateTime.MinValue gives 0, and other dates before year 100 throw an System.OverflowException. |
Returns
| result | Number |
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
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time; its time of day is not shown. |
Returns
| result | Text |
Overload 2 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date to format. |
Returns
| result | Text |
- 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
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time; its date is not shown. |
Returns
| result | Text |
Overload 2 of 2
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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day to format. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
To String
FunctionOverload 1 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — |
Returns
| result | Text |
Overload 2 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to format. |
| format | Text | — | 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
| result | Text |
Overload 3 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to format. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text |
Overload 4 of 15
ToString -> Text
value: Date & Time
format: Text
provider: IFormatProviderstring 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
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to format. |
| format | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text |
Overload 5 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — |
Returns
| result | Text |
Overload 6 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date to format. |
| format | Text | — | 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
| result | Text |
Overload 7 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date to format. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text |
Overload 8 of 15
ToString -> Text
value: DateOnly
format: Text
provider: IFormatProviderstring ToString(
DateOnly value,
string format,
IFormatProvider provider)Writes a date as text using a format and the conventions of a given culture.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — | The date to format. |
| format | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text |
Overload 9 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — |
Returns
| result | Text |
Overload 10 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day to format. |
| format | Text | — | 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
| result | Text |
Overload 11 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day to format. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text |
Overload 12 of 15
ToString -> Text
value: TimeOnly
format: Text
provider: IFormatProviderstring 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
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day to format. |
| format | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text |
Overload 13 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — |
Returns
| result | Text |
Overload 14 of 15
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
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration to format. |
| format | Text | — | The format string; null or empty uses "c", and an invalid one throws a System.FormatException. |
Returns
| result | Text |
Overload 15 of 15
ToString -> Text
value: TimeSpan
format: Text
provider: IFormatProviderstring 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
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration to format. |
| format | Text | — | 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. |
| provider | IFormatProvider | — | The culture whose conventions to use, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Total Days
FunctionGets the whole length of a duration in days, including the fraction (36 hours is 1.5).
TotalDays(value: TimeSpan) -> Number
double TotalDays(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Total Hours
FunctionGets the whole length of a duration in hours, including the fraction (90 minutes is 1.5).
TotalHours(value: TimeSpan) -> Number
double TotalHours(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Total Microseconds
FunctionGets the whole length of a duration in microseconds, including the fraction.
TotalMicroseconds(value: TimeSpan) -> Number
double TotalMicroseconds(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Total Milliseconds
FunctionGets the whole length of a duration in milliseconds, including the fraction.
TotalMilliseconds(value: TimeSpan) -> Number
double TotalMilliseconds(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Total Minutes
FunctionGets the whole length of a duration in minutes, including the fraction.
TotalMinutes(value: TimeSpan) -> Number
double TotalMinutes(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Total Nanoseconds
FunctionGets the whole length of a duration in nanoseconds.
TotalNanoseconds(value: TimeSpan) -> Number
double TotalNanoseconds(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Total Seconds
FunctionGets the whole length of a duration in seconds, including the fraction.
TotalSeconds(value: TimeSpan) -> Number
double TotalSeconds(TimeSpan value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeSpan | — | The duration. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
To Time Only
FunctionTakes the time of day of a System.DateTime and drops its date.
ToTimeOnly(value: Date & Time) -> TimeOnly
TimeOnly ToTimeOnly(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to take the time of day from; its kind is ignored and no time-zone conversion is made. |
Returns
| result | TimeOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
To Time Span
FunctionTurns a System.TimeOnly time of day into the duration since midnight, for example 13:30 into 13 hours 30 minutes.
ToTimeSpan(value: TimeOnly) -> TimeSpan
TimeSpan ToTimeSpan(TimeOnly value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | TimeOnly | — | The time of day. |
Returns
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
To Universal Time
FunctionConverts the specified System.DateTime value to Coordinated Universal Time (UTC).
ToUniversalTime(value: Date & Time) -> Date & Time
DateTime ToUniversalTime(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — |
Returns
| result | Date & 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
FunctionConverts 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.
ToUnixTimeMilliseconds(value: Date & Time) -> Large Integer
long ToUnixTimeMilliseconds(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to convert. |
Returns
| result | Large 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
FunctionConverts a date and time to a Unix timestamp: the whole seconds elapsed since 1970-01-01 00:00:00 UTC.
ToUnixTimeSeconds(value: Date & Time) -> Large Integer
long ToUnixTimeSeconds(DateTime value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time to convert. |
Returns
| result | Large 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
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null or unreadable text makes the node report failure. |
Returns
| result | Truth |
| result | Date & Time |
Overload 2 of 2
TryParse -> (result: Truth, result: Date & Time)
s: Text
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null or unreadable text makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | Options such as DateTimeStyles.AdjustToUniversal; a contradictory combination still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | Date & 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
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null, unreadable text or text that includes a time makes the node report failure. |
Returns
| result | Truth |
| result | DateOnly |
Overload 2 of 2
TryParseDateOnly -> (result: Truth, result: DateOnly)
s: Text
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null, unreadable text or text that includes a time makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | DateOnly |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Try Parse Exact
FunctionOverload 1 of 2
TryParseExact -> (result: Truth, result: Date & Time)
s: Text
format: Text
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null or text that does not match makes the node report failure. |
| format | Text | — | The standard or custom format the text must match; null makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | Options such as DateTimeStyles.AllowWhiteSpaces; a contradictory combination still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | Date & Time |
Overload 2 of 2
TryParseExact -> (result: Truth, result: Date & Time)
s: Text
formats: Text Array
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null or text that matches none of the formats makes the node report failure. |
| formats | Text Array | — | The formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | Options such as DateTimeStyles.AllowWhiteSpaces; a contradictory combination still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | Date & 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
FunctionOverload 1 of 2
TryParseExactDateOnly -> (result: Truth, result: DateOnly)
s: Text
format: Text
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null or text that does not match makes the node report failure. |
| format | Text | — | The standard or custom date format the text must match; null makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | DateOnly |
Overload 2 of 2
TryParseExactDateOnly -> (result: Truth, result: DateOnly)
s: Text
formats: Text Array
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null or text that matches none of the formats makes the node report failure. |
| formats | Text Array | — | The date formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | DateOnly |
- 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
FunctionOverload 1 of 2
TryParseExactTimeOnly -> (result: Truth, result: TimeOnly)
s: Text
format: Text
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null or text that does not match makes the node report failure. |
| format | Text | — | The standard or custom time format the text must match; null makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | TimeOnly |
Overload 2 of 2
TryParseExactTimeOnly -> (result: Truth, result: TimeOnly)
s: Text
formats: Text Array
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null or text that matches none of the formats makes the node report failure. |
| formats | Text Array | — | The time formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | TimeOnly |
- 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
FunctionOverload 1 of 4
TryParseExactTimeSpan -> (result: Truth, result: TimeSpan)
input: Text
format: Text
provider: IFormatProviderbool 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
| name | type | default | description |
|---|---|---|---|
| input | Text | — | The text to read; null, text that does not match or a value out of range makes the node report failure. |
| format | Text | — | The standard or custom format the text must match; null makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Truth |
| result | TimeSpan |
Overload 2 of 4
TryParseExactTimeSpan -> (result: Truth, result: TimeSpan)
input: Text
format: Text
provider: IFormatProvider
styles: TimeSpanStylesbool 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
| name | type | default | description |
|---|---|---|---|
| input | Text | — | The text to read; null, text that does not match or a value out of range makes the node report failure. |
| format | Text | — | The standard or custom format the text must match; null makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | TimeSpanStyles | — | TimeSpanStyles.AssumeNegative makes a custom-format result negative; TimeSpanStyles.None leaves it as written. |
Returns
| result | Truth |
| result | TimeSpan |
Overload 3 of 4
TryParseExactTimeSpan -> (result: Truth, result: TimeSpan)
input: Text
formats: Text Array
provider: IFormatProviderbool 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
| name | type | default | description |
|---|---|---|---|
| input | Text | — | The text to read; null, text that matches none of the formats or a value out of range makes the node report failure. |
| formats | Text Array | — | The formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Truth |
| result | TimeSpan |
Overload 4 of 4
TryParseExactTimeSpan -> (result: Truth, result: TimeSpan)
input: Text
formats: Text Array
provider: IFormatProvider
styles: TimeSpanStylesbool 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
| name | type | default | description |
|---|---|---|---|
| input | Text | — | The text to read; null, text that matches none of the formats or a value out of range makes the node report failure. |
| formats | Text Array | — | The formats to try; the first that matches is used. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | TimeSpanStyles | — | TimeSpanStyles.AssumeNegative makes a custom-format result negative; TimeSpanStyles.None leaves it as written. |
Returns
| result | Truth |
| result | TimeSpan |
- 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
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null, unreadable text or text that includes a date makes the node report failure. |
Returns
| result | Truth |
| result | TimeOnly |
Overload 2 of 2
TryParseTimeOnly -> (result: Truth, result: TimeOnly)
s: Text
provider: IFormatProvider
styles: DateTimeStylesbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null, unreadable text or text that includes a date makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
| styles | DateTimeStyles | — | White-space options only, such as DateTimeStyles.AllowWhiteSpaces; any other style still throws an System.ArgumentException. |
Returns
| result | Truth |
| result | TimeOnly |
- 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
FunctionOverload 1 of 2
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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null, text in the wrong form or a value out of range makes the node report failure. |
Returns
| result | Truth |
| result | TimeSpan |
Overload 2 of 2
TryParseTimeSpan -> (result: Truth, result: TimeSpan)
s: Text
provider: IFormatProviderbool 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
| name | type | default | description |
|---|---|---|---|
| s | Text | — | The text to read; null, text in the wrong form or a value out of range makes the node report failure. |
| provider | IFormatProvider | — | The culture whose conventions to expect, such as a Globalization.CultureInfo; null uses the invariant culture, the same on every machine. |
Returns
| result | Truth |
| result | TimeSpan |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library
Year
FunctionOverload 1 of 2
Year(value: Date & Time) -> Integer
int Year(DateTime value)
Gets the year of a date and time.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Date & Time | — | The date and time. |
Returns
| result | Integer |
Overload 2 of 2
Year(value: DateOnly) -> Integer
int Year(DateOnly value)
Gets the year component of a DateOnly.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | DateOnly | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Date Time Routines
- Package
- Standard Library