MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / time

Function time

packages/hydrooj/src/handler/contest.ts:987–987  ·  view source on GitHub ↗
(t: ObjectId)

Source from the content-addressed store, hash-verified

985 const teamIds: Record<number, number> = {};
986 for (let i = 1; i <= teams.length; i++) teamIds[teams[i - 1].uid] = i;
987 const time = (t: ObjectId) => Math.floor((t.getTimestamp().getTime() - tdoc.beginAt.getTime()) / Time.second);
988 const pid = (i: number) => getAlphabeticId(i);
989 const escape = (i: string) => i.replace(/[",]/g, '');
990 const unknownSchool = this.translate('Unknown School');

Callers 1

displayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected