Skip to content

EZ Web Audio / TimeObject

Interface: TimeObject

Defined in: packages/core/src/utils/create-time-object.ts:29

An object containing a duration in three formats. The three formats are raw, string, and pojo.

Duration of 6 minutes would be formatted as:

{
  raw: 360, // seconds
  string: '06:00',
  pojo: {
    minutes: 6,
    seconds: 0
  }
}

Properties

pojo

pojo: object

Defined in: packages/core/src/utils/create-time-object.ts:32

The duration in a POJO format

minutes

minutes: number

seconds

seconds: number


raw

raw: number

Defined in: packages/core/src/utils/create-time-object.ts:30

The duration in seconds


string

string: string

Defined in: packages/core/src/utils/create-time-object.ts:31

The duration in a string format