MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / formatLocalTime

Function formatLocalTime

source code/utils/cron.ts:202–207  ·  view source on GitHub ↗
(minute: number, hour: number)

Source from the content-addressed store, hash-verified

200]
201
202function formatLocalTime(minute: number, hour: number): string {
203 // January 1 — no DST gap anywhere. Using `new Date()` (today) would roll
204 // 2am→3am on the one spring-forward day per year.
205 const d = new Date(2000, 0, 1, hour, minute)
206 return d.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' })
207}
208
209function formatUtcTimeAsLocal(minute: number, hour: number): string {
210 // Create a date in UTC and format in user's local timezone

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected