Bluestep JS Documentation
    Preparing search index...

    Class LocalDateTime

    A date-time without a time-zone in the ISO-8601 calendar system, such as 2007-12-03T10:15:30.

    See java.time.LocalDateTime for full documentation

    Index

    Constructors

    Methods

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

      Parameters

      Returns Temporal

    • Combines this date-time with a time-zone to create a ZonedDateTime.

      Parameters

      Returns ZonedDateTime

    • Compares this date-time to another date-time.

      Parameters

      Returns number

    • Formats this date-time using the specified formatter.

      Parameters

      Returns string

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

      Parameters

      Returns number

    • Gets the day-of-month field. The first day of the month is 1.

      Returns number

    • Gets the day-of-week field, which is an enum DayOfWeek. Use the method getValue() to extract the numeric value of the day Remember that "Monday" has a getValue of 1, and "Sunday" a getValue of 7

      Returns DayOfWeek

    • Gets the day-of-year field. The minimum value of this is 1, and the max is 365 or 366 depending on if it is a leapyear

      Returns number

    • Gets the hour-of-day field. NOTE: from 0 to 23

      Returns number

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

      Parameters

      Returns number

    • Gets the minute-of-hour field.

      Returns number

    • Gets the month-of-year field using the Month enum.

      Returns Month

    • Gets the month-of-year field from 1 to 12.

      Returns number

    • Gets the nano-of-second field.

      Returns number

    • Gets the second-of-minute field.

      Returns number

    • Gets the year field.

      Returns number

    • Checks if this date-time is after the specified date-time.

      Parameters

      Returns boolean

    • Checks if this date-time is before the specified date-time.

      Parameters

      Returns boolean

    • Checks if this date-time is equal to the specified date-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 date-time with the specified amount subtracted.

      Parameters

      Returns LocalDateTime

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

      Parameters

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the specified number of days subtracted.

      Parameters

      • days: number

      Returns LocalDateTime

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

      Parameters

      • hours: number

      Returns LocalDateTime

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

      Parameters

      • minutes: number

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the specified number of months subtracted.

      Parameters

      • months: number

      Returns LocalDateTime

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

      Parameters

      • nanos: number

      Returns LocalDateTime

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

      Parameters

      • seconds: number

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the specified number of weeks subtracted.

      Parameters

      • weeks: number

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the specified number of years subtracted.

      Parameters

      • years: number

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the specified number of days added.

      Parameters

      • days: number

      Returns LocalDateTime

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

      Parameters

      • hours: number

      Returns LocalDateTime

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

      Parameters

      • minutes: number

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the specified number of months added.

      Parameters

      • months: number

      Returns LocalDateTime

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

      Parameters

      • nanos: number

      Returns LocalDateTime

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

      Parameters

      • seconds: number

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the specified number of weeks added.

      Parameters

      • weeks: number

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the specified number of years added.

      Parameters

      • years: number

      Returns LocalDateTime

    • Queries this date-time using the specified query.

      Type Parameters

      • R

      Parameters

      Returns R

    • Gets the LocalDate part of this date-time.

      Returns LocalDate

    • Gets the LocalTime part of this date-time.

      Returns LocalTime

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

      Parameters

      Returns number

    • Returns a copy of this LocalDateTime with the day-of-month altered.

      Parameters

      • dayOfMonth: number

        the day-of-month to set in the result, from 1 to 28-31

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the day-of-year altered.

      Parameters

      • dayOfYear: number

        the day-of-year to set in the result, from 1 to 365-366

      Returns LocalDateTime

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

      Parameters

      • hour: number

        the hour-of-day to set in the result, from 0 to 23

      Returns LocalDateTime

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

      Parameters

      • minute: number

        the minute-of-hour to set in the result, from 0 to 59

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the month-of-year altered.

      Parameters

      • month: number

        the month-of-year to set in the result, from 1 (January) to 12 (December)

      Returns LocalDateTime

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

      Parameters

      • nanoOfSecond: number

        the nano-of-second to set in the result, from 0 to 999,999,999

      Returns LocalDateTime

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

      Parameters

      • second: number

        the second-of-minute to set in the result, from 0 to 59

      Returns LocalDateTime

    • Returns a copy of this LocalDateTime with the year altered.

      Parameters

      • year: number

        the year to set in the result, from MIN_YEAR to MAX_YEAR

      Returns LocalDateTime

    • 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 LocalDateTime

    • Obtains an instance of LocalDateTime from year, month, day, hour and minute, setting the second and nanosecond to zero.

      Parameters

      • year: number
      • month: number
      • dayOfMonth: number
      • hour: number
      • minute: number

      Returns LocalDateTime

    • Obtains an instance of LocalDateTime from year, month, day, hour, minute and second, setting the nanosecond to zero.

      Parameters

      • year: number
      • month: number
      • dayOfMonth: number
      • hour: number
      • minute: number
      • second: number

      Returns LocalDateTime

    • Obtains an instance of LocalDateTime from year, month, day, hour, minute, second and nanosecond.

      Parameters

      • year: number
      • month: number
      • dayOfMonth: number
      • hour: number
      • minute: number
      • second: number
      • nanoOfSecond: number

      Returns LocalDateTime

    • Obtains an instance of LocalDateTime from year, month, day, hour and minute, setting the second and nanosecond to zero.

      Parameters

      • year: number
      • month: Month
      • dayOfMonth: number
      • hour: number
      • minute: number

      Returns LocalDateTime

    • Obtains an instance of LocalDateTime from year, month, day, hour, minute and second, setting the nanosecond to zero.

      Parameters

      • year: number
      • month: Month
      • dayOfMonth: number
      • hour: number
      • minute: number
      • second: number

      Returns LocalDateTime

    • Obtains an instance of LocalDateTime from year, month, day, hour, minute, second and nanosecond.

      Parameters

      • year: number
      • month: Month
      • dayOfMonth: number
      • hour: number
      • minute: number
      • second: number
      • nanoOfSecond: number

      Returns LocalDateTime

    • Obtains an instance of LocalDateTime from a date and time.

      Parameters

      Returns LocalDateTime

    • Obtains an instance of LocalDateTime using seconds from the epoch of 1970-01-01T00:00:00Z.

      Parameters

      • epochSecond: number
      • nanoOfSecond: number
      • offset: ZoneOffset

      Returns LocalDateTime

    • Obtains an instance of LocalDateTime from a text string such as 2007-12-03T10:15:30.

      Parameters

      Returns LocalDateTime