Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines a time interval using the number of milliseconds since the epoc in UTC instead of ISO 8601 standard time intervals. This is used for consistency within the system.

An interval can have four formats:

  • start and end timestamps
  • start timestamp and duration
  • duration and end timestamp
  • duration only

The ISO 8601 standard string can be created using the function toLocalTimeIntervalIsoString in the @coaty/core module.

Hierarchy

  • TimeInterval

Index

Properties

Optional duration

duration?: number

Duration of the interval. Value represents the number of milliseconds.

This can be either used with start or end timestamp but not both.

Optional end

end?: number

End timestamp of the interval. Value represents the number of milliseconds since the epoc in UTC. (see Date.getTime(), Date.now())

This can be either used with start timestamp or a duration but not both.

Optional start

start?: number

Start timestamp of the interval. Value represents the number of milliseconds since the epoc in UTC. (see Date.getTime(), Date.now())

This can be either used with end timestamp or a duration but not both.

Generated using TypeDoc