Bluestep JS Documentation
    Preparing search index...

    A clock providing access to the current instant, date and time using a time-zone.

    See java.time.Clock for full documentation

    Index

    Constructors

    Methods

    • Gets the time-zone being used to create dates and times.

      Returns ZoneId

    • Gets the current instant of the clock.

      Returns Instant

    • Gets the current millisecond instant of the clock.

      Returns number

    • Returns a copy of this clock with a different time-zone.

      Parameters

      Returns Clock

    • Obtains a clock that always returns the same instant.

      Parameters

      Returns Clock

    • Obtains a clock that returns instants from the specified clock with the specified duration added

      Parameters

      Returns Clock

    • Obtains a clock that returns the current instant using the best available system clock.

      Parameters

      Returns Clock

    • Obtains a clock that returns the current instant using the best available system clock, converting to date and time using the default time-zone.

      Returns Clock

    • Obtains a clock that returns the current instant using the best available system clock, converting to date and time using the UTC time-zone.

      Returns Clock

    • Obtains a clock that returns instants from the specified clock truncated to the nearest occurrence of the specified duration.

      Parameters

      Returns Clock

    • Obtains a clock that returns the current instant ticking in whole milliseconds using the best available system clock.

      Parameters

      Returns Clock

    • Obtains a clock that returns the current instant ticking in whole minutes using the best available system clock.

      Parameters

      Returns Clock

    • Obtains a clock that returns the current instant ticking in whole seconds using the best available system clock.

      Parameters

      Returns Clock