MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / formatDate

Function formatDate

tensorboard/components/tf_card_heading/util.ts:16–22  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

14==============================================================================*/
15
16export function formatDate(date) {
17 if (!date) {
18 return '';
19 }
20 // Turn things like "GMT-0700 (PDT)" into just "PDT".
21 return date.toString().replace(/GMT-\d+ \(([^)]+)\)/, '$1');
22}
23
24/**
25 * Returns CSS color that will contrast against background.

Callers 3

_currentWallTimeMethod · 0.90
_currentWallTimeMethod · 0.90
_createStepDatumMethod · 0.90

Calls 2

replaceMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…