Time Until Hour
PureTimeUntilHourCalculates how many hours until a target hour, correctly wrapping past midnight.
Type: Pure (no side effects)
Category: Fortuna|Time & Date
Keywords: time & date
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| CurrentHour | float, 0-24 | — | CurrentHour parameter |
| TargetHour | float, 0-24 | — | TargetHour parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | float, hours until target | ReturnValue output |
Example Use Cases
Example 1
Display 'Shop opens in 3 hours'.
Example 2
Calculate time until a timed event starts.