Bluestep JS Documentation
    Preparing search index...

    Class LocalTime

    A time without a time-zone in the ISO-8601 calendar system, such as 10:15:30.

    See java.time.LocalTime for full documentation

    Index

    Constructors

    Methods

    • Adjusts the specified temporal object to have the same time as this object.

      Parameters

      Returns Temporal

    • Combines this time with an offset to create an OffsetTime.

      Parameters

      Returns OffsetTime

    • Compares this time to another time.

      Parameters

      Returns number

    • Formats this time using the specified formatter.

      Parameters

      Returns string

    • Gets the value of the specified field from this time as an int.

      Parameters

      Returns number

    • Gets the hour-of-day field.

      Returns number

    • Gets the value of the specified field from this time as a long.

      Parameters

      Returns number

    • Gets the minute-of-hour field.

      Returns number

    • Gets the nano-of-second field.

      Returns number

    • Gets the second-of-minute field.

      Returns number

    • Checks if this time is after the specified time.

      Parameters

      Returns boolean

    • Checks if this time is before the specified time.

      Parameters

      Returns boolean

    • Checks if the specified field is supported.

      Parameters

      Returns boolean

    • Checks if the specified unit is supported.

      Parameters

      Returns boolean

    • Returns a copy of this time with the specified amount subtracted.

      Parameters

      Returns LocalTime

    • Returns a copy of this time with the specified amount subtracted.

      Parameters

      Returns LocalTime

    • Returns a copy of this LocalTime with the specified number of hours subtracted.

      Parameters

      • hoursToSubtract: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the specified number of minutes subtracted.

      Parameters

      • minutesToSubtract: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the specified number of nanoseconds subtracted.

      Parameters

      • nanosToSubtract: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the specified number of seconds subtracted.

      Parameters

      • secondsToSubtract: number

      Returns LocalTime

    • Returns a copy of this time with the specified amount added.

      Parameters

      Returns LocalTime

    • Returns a copy of this time with the specified amount added.

      Parameters

      Returns LocalTime

    • Returns a copy of this LocalTime with the specified number of hours added.

      Parameters

      • hoursToAdd: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the specified number of minutes added.

      Parameters

      • minutesToAdd: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the specified number of nanoseconds added.

      Parameters

      • nanosToAdd: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the specified number of seconds added.

      Parameters

      • secondstoAdd: number

      Returns LocalTime

    • Queries this time using the specified query.

      Type Parameters

      • R

      Parameters

      Returns R

    • Converts this LocalTime to the number of seconds since the epoch of 1970-01-01T00:00:00Z.

      Parameters

      Returns number

    • Extracts the time as nanos of day, from 0 to 24 * 60 * 60 * 1,000,000,000 - 1.

      Returns number

    • Extracts the time as seconds of day, from 0 to 24 * 60 * 60 - 1.

      Returns number

    • Returns a copy of this LocalTime with the time truncated.

      Parameters

      Returns LocalTime

    • Calculates the amount of time until another time in terms of the specified unit.

      Parameters

      Returns number

    • Returns a copy of this LocalTime with the hour-of-day altered.

      Parameters

      • hour: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the minute-of-hour altered.

      Parameters

      • minute: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the nano-of-second altered.

      Parameters

      • nanoOfSecond: number

      Returns LocalTime

    • Returns a copy of this LocalTime with the second-of-minute altered.

      Parameters

      • second: number

      Returns LocalTime

    • Obtains the current time from the system clock in the default time-zone.

      Parameters

      • OptionalclockOrZoneId: ZoneId | Clock

        When present, obtains the current time from the specified clock or the system clock in the specified time-zone.

      Returns LocalTime

    • Obtains an instance of LocalTime from an hour and minute.

      Parameters

      • hour: number
      • minute: number

      Returns LocalTime

    • Obtains an instance of LocalTime from an hour, minute and second.

      Parameters

      • hour: number
      • minute: number
      • Optionalsecond: number

      Returns LocalTime

    • Obtains an instance of LocalTime from an hour, minute, second and nanosecond.

      Parameters

      • hour: number
      • minute: number
      • Optionalsecond: number
      • OptionalnanoOfSecond: number

      Returns LocalTime

    • Obtains an instance of LocalTime from an Instant and zone ID.

      Parameters

      Returns LocalTime

    • Obtains an instance of LocalTime from a nanos-of-day value.

      Parameters

      • nanoOfDay: number

      Returns LocalTime

    • Obtains an instance of LocalTime from a second-of-day value.

      Parameters

      • secondOfDay: number

      Returns LocalTime

    • Obtains an instance of LocalTime from a text string such as 10:15.

      Parameters

      Returns LocalTime