MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / dateTupleToYYYYMMDD

Function dateTupleToYYYYMMDD

date-conversion-attention/date_format.js:185–189  ·  view source on GitHub ↗
(dateTuple)

Source from the content-addressed store, hash-verified

183
184/** Date format such as 20190120. */
185export function dateTupleToYYYYMMDD(dateTuple) {
186 const monthStr = toTwoDigitString(dateTuple[1]);
187 const dayStr = toTwoDigitString(dateTuple[2]);
188 return `${dateTuple[0]}${monthStr}${dayStr}`;
189}
190
191/** Date format such as 2019-1-20. */
192export function dateTupleToYYYYDashMDashD(dateTuple) {

Callers

nothing calls this directly

Calls 1

toTwoDigitStringFunction · 0.85

Tested by

no test coverage detected