MCPcopy
hub / github.com/tensorflow/tfjs-examples / dateTupleToDDMMMYYYY

Function dateTupleToDDMMMYYYY

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

Source from the content-addressed store, hash-verified

76
77/** Date format such as 01202019. */
78export function dateTupleToDDMMMYYYY(dateTuple) {
79 const monthStr = MONTH_NAMES_3LETTER[dateTuple[1] - 1];
80 const dayStr = toTwoDigitString(dateTuple[2]);
81 return `${dayStr}${monthStr}${dateTuple[0]}`;
82}
83
84/** Date format such as 01/20/2019. */
85export function dateTupleToMMSlashDDSlashYYYY(dateTuple) {

Callers

nothing calls this directly

Calls 1

toTwoDigitStringFunction · 0.85

Tested by

no test coverage detected