MCPcopy Create free account
hub / github.com/adobe/react-spectrum / prettyDate

Function prettyDate

scripts/changelog.js:94–111  ·  view source on GitHub ↗
(ymd)

Source from the content-addressed store, hash-verified

92}
93
94function prettyDate(ymd) {
95 let [y, m, d] = ymd.split('-').map(Number);
96 let months = [
97 'January',
98 'February',
99 'March',
100 'April',
101 'May',
102 'June',
103 'July',
104 'August',
105 'September',
106 'October',
107 'November',
108 'December'
109 ];
110 return `${months[m - 1]} ${d}, ${y}`;
111}
112
113function licenseHeader(year) {
114 return `{/* Copyright ${year} Adobe. All rights reserved.

Callers 1

scaffoldS2DocsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected