Time Input
Outputs the current simulation time, providing input for timing control, piecewise functions, and time-varying control logic.
Component Appearance and Location
Expand Controller in the component library on the left and find "Time Input".
Ports and Connections
| Port Key | Type | Direction | Interface Name | Display Conditions |
|---|---|---|---|---|
0 | CONTROL | output | Output port | always show |
This component only provides signal output, which can provide a fixed time or the current simulation time to the calculation component or script controller.
Parameter List
Basic Parameters
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Time Value Type | ValueType | choice | Constant / Current Simulation Time | Time Value Type |
| Time Value | TimeValue | datetime | 2026-01-01 00:00:00 | Time Value |
Parameter Guidance
- Time Value Type. Constant gives a reference instant; Current Simulation Time gives the control evaluation instant.
- Time Value. Enter
YYYY-MM-DD HH:mm:ssin Constant mode.
Modeling Steps
- Choose a fixed reference or current time.
- Enter Time Value for Constant.
- Connect to arithmetic, comparison, or scripts. Subtract a reference on the same basis for elapsed time. Subtracter
View Results
Constant holds a fixed timestamp; Current Simulation Time advances with control evaluations. Distinguish simulation time on the horizontal axis from the timestamp signal on the vertical axis.
Professional Theory
Let convert a datetime to POSIX seconds, be the evaluation instant, and the fixed instant. The outputs are
Dates use the calculation environment local timezone. Check timezone and scale against external timestamps. Python Timestamp
Applicability and Limits
- Timing. Conditions evaluate at actual control instants. Use device transient schedules for actions requiring exact event times.
- Intervals. Timestamp differences use seconds. Script
timeis a datetime; convert explicitly when needed. Python Script Controller
Common Inspections
- Hours of offset or scale mismatch. Check timezone and seconds versus milliseconds.
- Current time unchanged. Check mode, transient interval, and actual signal result times.