MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / fmtMs

Function fmtMs

ntp/ntp.ts:169–175  ·  view source on GitHub ↗
(ms?: number)

Source from the content-addressed store, hash-verified

167 return `${sign}${abs.toFixed(1)}ms`;
168}
169
170function formatDateCN(date: Date): string {
171 return date.toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" });
172}
173
174async function setSystemTimeBestEffort(serverTimeMs: number): Promise<{
175 ok: boolean;
176 command?: string;
177 stdout?: string;
178 stderr?: string;

Callers 1

NtpPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected