MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / getAtTime

Function getAtTime

src/components/CronWeeklyTimeline.tsx:58–64  ·  view source on GitHub ↗
(schedule: string | Record<string, unknown>)

Source from the content-addressed store, hash-verified

56}
57
58function getAtTime(schedule: string | Record<string, unknown>): Date | null {
59 if (typeof schedule === "object" && schedule && schedule.kind === "at") {
60 const at = schedule.at as string;
61 if (at) return new Date(at);
62 }
63 return null;
64}
65
66function formatIntervalLabel(ms: number): string {
67 if (ms >= 86400000) return `Every ${Math.round(ms / 86400000)}d`;

Callers 1

CronWeeklyTimelineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected