INNER CODE UNIT · TypeScript

MS_IN_WEEK

radzionc/radzionkit · lib/utils/time/index.ts:14

export const MS_IN_WEEK = 7 * MS_IN_DAY
export const NS_IN_MS = 1000000

export const MONTHS_IN_YEAR = 12

export const WEEKDAYS = [
  'Monday',
  'Tuesday',
  'Wednesday',
  'Thursday',
  'Friday',
  'Saturday',
  'Sunday',
] as const

export const getShortWeekday = (weekday: number) =>
  WEEKDAYS[weekday].slice(0, 3)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…