Skip to main content

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".

Created with Fabric.js 5.3.0

Ports and Connections​

Port KeyTypeDirectionInterface NameDisplay Conditions
0CONTROLoutputOutput portalways 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

NamekeyTypeDefault / OptionsDescription
Time Value TypeValueTypechoiceConstant / Current Simulation TimeTime Value Type
Time ValueTimeValuedatetime2026-01-01 00:00:00Time 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:ss in Constant mode.

Modeling Steps​

  1. Choose a fixed reference or current time.
  2. Enter Time Value for Constant.
  3. 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 T(⋅)T(\cdot) convert a datetime to POSIX seconds, tt be the evaluation instant, and treft_{\mathrm{ref}} the fixed instant. The outputs are

yfixed=T(tref),ysim(t)=T(t).y_{\mathrm{fixed}}=T(t_{\mathrm{ref}}), \qquad y_{\mathrm{sim}}(t)=T(t).

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 time is 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.