Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

610 B
Raw Blame
export const IN_MS = {
  SECOND: 1_000,
  MINUTE: 60_000, // 60 * 1_000
  HOUR: 3_600_000, // 60 * 60 * 1_000
  DAY: 86_400_000, // 24 * 60 * 60 * 1_000
  WEEK: 604_800_000, // 7 * 24 * 60 * 60 * 1_000
  MONTH: 2_630_016_000, // 30.44 * 24 * 60 * 60 * 1_000 -- approximation using average month length
  YEAR: 31_556_736_000, // 365.24 * 24 * 60 * 60 * 1_000 -- approximation using average year length
};

export const IN_BYTES = {
  KILOBYTE: 1_024,
  MEGABYTE: 1_048_576, // 1_024 * 1_024
  GIGABYTE: 1_073_741_824, // 1_024 * 1_024 * 1_024
  TERABYTE: 1_099_511_627_776, // 1_024 * 1_024 * 1_024 * 1_024
};