Application Load

IApiDateTime

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IApiDateTime

Formatted backend date/time representation.

app/interfaces/orionplace/accounts/IProfileData.ts
TypeScript
export interface IApiDateTime {
  // Date formatted as DD.MM.YYYY.
  date: string;
  // Time formatted as HH:mm.
  time: string;
  // Whole days since this moment; the string `"Unknown"` when the interval
  // could not be calculated.
  days_ago: number | string;
  // Total minutes since this moment, rounded to two decimal places (not the
  // remainder after `days_ago`); the string `"Unknown"` when the interval could
  // not be calculated.
  minutes_ago?: number | string;
  // Relative time as a pair: how much time passed and its unit, for example 46
  // and `sec`. The unit is an unlocalized English token (`sec`, `min`, `h`,
  // `d`, `m`, `y`), so translate it before showing it; an empty string arrives
  // when the interval could not be calculated.
  word: [number, string] | string;
}