MCPcopy
hub / github.com/apache/caldera / getHumanFriendlyTimeISO8601

Function getHumanFriendlyTimeISO8601

static/js/shared.js:182–184  ·  view source on GitHub ↗

* Parse timestamp into human-friendly date ISO8601-safe format * @param dateTime {string} - Expected ISO8601 input in UTC time: (i.e.) 2021-08-25T10:03:23Z * @returns {string} - (i.e.) '5 hrs ago'

(dateTime)

Source from the content-addressed store, hash-verified

180 * @returns {string} - (i.e.) '5 hrs ago'
181 */
182function getHumanFriendlyTimeISO8601(dateTime) {
183 return getHumanFriendlyTime(dateTime.replace('T', ' ').replace('Z', ''));
184}
185
186function sortAlphabetically(list) {
187 return list.sort((a, b) => {

Callers

nothing calls this directly

Calls 2

getHumanFriendlyTimeFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected