Class TimeControlAdapter

java.lang.Object
ai.specformula.spring.instruction.TimeControlAdapter
All Implemented Interfaces:
TimeControlInstruction

public class TimeControlAdapter extends Object implements TimeControlInstruction
TimeControlInstruction 的轉換層實作。

直接委派給 TimeControl(無 DataTable 轉換)。

  • Constructor Details

  • Method Details

    • setTime

      public void setTime(String timeString)
      Description copied from interface: TimeControlInstruction
      設定測試情境的當前時間。

      支援格式:ISO 8601、日期、相對時間(now-1d)、@time() / @date() 表達式。

      Specified by:
      setTime in interface TimeControlInstruction
      Parameters:
      timeString - 時間字串