MCPcopy Create free account
hub / github.com/api-platform/website / convertTime

Function convertTime

pwa/utils/con/index.tsx:36–39  ·  view source on GitHub ↗
(
  date,
  time
)

Source from the content-addressed store, hash-verified

34 dayjs(date).format("ll");
35
36export const convertTime: (date: string, time: string) => string = (
37 date,
38 time
39) => dayjs(`${date}T${time}`).format("HH:mm A");
40
41export const isMorningTime: (time?: string) => boolean = (time) =>
42 (time && 12 >= parseInt(time.split(":")[0], 10)) || false;

Callers 1

getConferenceTimesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected