MCPcopy Create free account
hub / github.com/codecombat/codecombat / objectIdToDate

Function objectIdToDate

app/core/utils.js:585–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585const objectIdToDate = objectID => new Date(parseInt(objectID.toString().slice(0, 8), 16) * 1000)
586
587const hexToHSL = hex => rgbToHsl(hexToR(hex), hexToG(hex), hexToB(hex))
588

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected