mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-08 17:12:55 +00:00
8 lines
265 B
TypeScript
8 lines
265 B
TypeScript
import { timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
|
|
export function resolveMemoryWikiTimestamp(nowMs?: number): string {
|
|
return (
|
|
timestampMsToIsoString(nowMs) ?? timestampMsToIsoString(Date.now()) ?? new Date().toISOString()
|
|
);
|
|
}
|