For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/reference/sdk/sapi/runtime/functions/getShanghaiTime.md.
  • English
  • Function: getShanghaiTime()

    function getShanghaiTime(): {
      date: string;
      time: string;
    };

    Defined in: sapi/runtime/tools.ts:202

    获取当前系统时间的东八区(UTC+8 北京/上海时间)日期与时间字符串。

    Returns

    {
      date: string;
      time: string;
    }

    包含 date ("YYYY-MM-DD") 与 time ("HH:mm:ss") 的对象。

    NameTypeDefined in
    datestringsapi/runtime/tools.ts:202
    timestringsapi/runtime/tools.ts:202