kopia lustrzana https://github.com/nolanlawson/pinafore
24 wiersze
519 B
JavaScript
24 wiersze
519 B
JavaScript
import { LOCALE } from '../_static/intl'
|
|
|
|
export const absoluteDateFormatter = new Intl.DateTimeFormat(LOCALE, {
|
|
year: 'numeric',
|
|
month: 'long',
|
|
day: 'numeric',
|
|
hour: '2-digit',
|
|
minute: '2-digit'
|
|
})
|
|
|
|
export const shortAbsoluteDateFormatter = new Intl.DateTimeFormat(LOCALE, {
|
|
year: 'numeric',
|
|
month: 'short',
|
|
day: 'numeric',
|
|
hour: '2-digit',
|
|
minute: '2-digit'
|
|
})
|
|
|
|
export const dayOnlyAbsoluteDateFormatter = new Intl.DateTimeFormat(LOCALE, {
|
|
year: 'numeric',
|
|
month: 'short',
|
|
day: 'numeric'
|
|
})
|