MCPcopy Index your code
hub / github.com/simstudioai/sim / toTimestamp

Function toTimestamp

apps/sim/tools/google_forms/get_responses.ts:150–154  ·  view source on GitHub ↗
(s?: string)

Source from the content-addressed store, hash-verified

148 if (isList(data)) {
149 const listData = data as GoogleFormsResponseList
150 const toTimestamp = (s?: string): number => {
151 if (!s) return 0
152 const t = Date.parse(s)
153 return Number.isNaN(t) ? 0 : t
154 }
155 const sorted = (listData.responses || [])
156 .slice()
157 .sort(

Callers 1

get_responses.tsFile · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected