Interface TimeSource

For testing purposes, we often need to manipulate what the current time is. This is an interface for a custom time source object so in tests you can use a custom time source.

interface TimeSource {
    now(): Date;
}

Implemented by

Methods

Methods

  • Return the current date+time as a javascript Date object

    Returns Date

    Throws

    nothing

Generated using TypeDoc