Seconds Since Midnight

Pure
SecondsSinceMidnight

Returns the number of seconds elapsed since midnight of the given date.

Type: Pure (no side effects)
Category: Fortuna|Time & Date
Keywords: time & date

Inputs

NameTypeDefaultDescription
DateTimeFDateTimeDateTime parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

Calculate time-based events in a day/night cycle.

Example 2

Seed random events based on time of day.