mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-11 02:16:06 +00:00
9 lines
320 B
TypeScript
9 lines
320 B
TypeScript
// Memory Wiki plugin module implements time behavior.
|
|
import { timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
|
|
export function resolveMemoryWikiTimestamp(nowMs?: number): string {
|
|
return (
|
|
timestampMsToIsoString(nowMs) ?? timestampMsToIsoString(Date.now()) ?? new Date().toISOString()
|
|
);
|
|
}
|