Documentation

Std.Time.Zoned.ZonedDateTime

Represents a date and time with timezone information.

  • The plain datetime component, evaluated lazily.

  • timestamp : Timestamp

    The corresponding timestamp for the datetime.

  • The timezone rules applied to this datetime.

  • timezone : TimeZone

    The timezone associated with this datetime.

Instances For
    @[inline]

    Creates a new ZonedDateTime out of a Timestamp and a ZoneRules.

    Instances For
      @[inline]

      Creates a new ZonedDateTime out of a PlainDateTime and a ZoneRules.

      Instances For
        @[inline]

        Creates a new ZonedDateTime out of a Timestamp and a TimeZone.

        Instances For
          @[inline]

          Creates a new ZonedDateTime out of a PlainDateTime and a TimeZone.

          Instances For
            @[inline]

            Creates a new Timestamp out of a ZonedDateTime.

            Instances For
              @[inline]

              Changes the ZoneRules to a new one.

              Instances For
                @[inline]

                Creates a new ZonedDateTime out of a PlainDateTime. It assumes that the PlainDateTime is relative to UTC.

                Instances For
                  @[inline]

                  Converts a ZonedDateTime to a PlainDateTime

                  Instances For
                    @[inline]

                    Converts a ZonedDateTime to a PlainDateTime

                    Instances For
                      @[inline]

                      Getter for the PlainTime inside of a ZonedDateTime

                      Instances For
                        @[inline]

                        Getter for the Year inside of a ZonedDateTime

                        Instances For
                          @[inline]

                          Getter for the Month inside of a ZonedDateTime

                          Instances For
                            @[inline]

                            Getter for the Day inside of a ZonedDateTime

                            Instances For
                              @[inline]

                              Getter for the Hour inside of a ZonedDateTime

                              Instances For
                                @[inline]

                                Getter for the Minute inside of a ZonedDateTime

                                Instances For
                                  @[inline]

                                  Getter for the Second inside of a ZonedDateTime

                                  Instances For
                                    @[inline]

                                    Getter for the Millisecond inside of a ZonedDateTime.

                                    Instances For
                                      @[inline]

                                      Getter for the Nanosecond inside of a ZonedDateTime

                                      Instances For
                                        @[inline]

                                        Getter for the TimeZone.Offset inside of a ZonedDateTime

                                        Instances For
                                          @[inline]

                                          Returns the weekday.

                                          Instances For
                                            @[inline]

                                            Transforms a tuple of a ZonedDateTime into a Day.Ordinal.OfYear.

                                            Instances For
                                              @[inline]

                                              Determines the week of the year for the given ZonedDateTime.

                                              Instances For

                                                Returns the unaligned week of the month for a ZonedDateTime (day divided by 7, plus 1).

                                                Instances For
                                                  @[inline]

                                                  Determines the week of the month for the given ZonedDateTime. The week of the month is calculated based on the day of the month and the weekday. Each week starts on Monday because the entire library is based on the Gregorian Calendar.

                                                  Instances For
                                                    @[inline]

                                                    Determines the quarter of the year for the given ZonedDateTime.

                                                    Instances For

                                                      Add Day.Offset to a ZonedDateTime.

                                                      Instances For

                                                        Subtract Day.Offset from a ZonedDateTime.

                                                        Instances For

                                                          Add Week.Offset to a ZonedDateTime.

                                                          Instances For

                                                            Subtract Week.Offset from a ZonedDateTime.

                                                            Instances For

                                                              Add Month.Offset to a ZonedDateTime, clipping to the last valid day.

                                                              Instances For

                                                                Subtract Month.Offset from a ZonedDateTime, clipping to the last valid day.

                                                                Instances For

                                                                  Add Month.Offset to a ZonedDateTime, rolling over excess days.

                                                                  Instances For

                                                                    Subtract Month.Offset from a ZonedDateTime, rolling over excess days.

                                                                    Instances For

                                                                      Add Year.Offset to a ZonedDateTime, rolling over excess days.

                                                                      Instances For

                                                                        Add Year.Offset to a ZonedDateTime, clipping to the last valid day.

                                                                        Instances For

                                                                          Subtract Year.Offset from a ZonedDateTime, clipping to the last valid day.

                                                                          Instances For

                                                                            Subtract Year.Offset from a ZonedDateTime, rolling over excess days.

                                                                            Instances For

                                                                              Add Hour.Offset to a ZonedDateTime.

                                                                              Instances For

                                                                                Subtract Hour.Offset from a ZonedDateTime.

                                                                                Instances For

                                                                                  Add Minute.Offset to a ZonedDateTime.

                                                                                  Instances For

                                                                                    Subtract Minute.Offset from a ZonedDateTime.

                                                                                    Instances For
                                                                                      @[inline]

                                                                                      Add Millisecond.Offset to a DateTime.

                                                                                      Instances For
                                                                                        @[inline]

                                                                                        Subtract Millisecond.Offset from a DateTime.

                                                                                        Instances For

                                                                                          Add Second.Offset to a ZonedDateTime.

                                                                                          Instances For

                                                                                            Subtract Second.Offset from a ZonedDateTime.

                                                                                            Instances For

                                                                                              Add Nanosecond.Offset to a ZonedDateTime.

                                                                                              Instances For

                                                                                                Subtract Nanosecond.Offset from a ZonedDateTime.

                                                                                                Instances For
                                                                                                  @[inline]

                                                                                                  Determines the era of the given ZonedDateTime based on its year.

                                                                                                  Instances For

                                                                                                    Sets the ZonedDateTime to the specified desiredWeekday.

                                                                                                    Instances For
                                                                                                      @[inline]

                                                                                                      Creates a new ZonedDateTime by adjusting the day of the month to the given days value, with any out-of-range days clipped to the nearest valid date.

                                                                                                      Instances For
                                                                                                        @[inline]

                                                                                                        Creates a new ZonedDateTime by adjusting the day of the month to the given days value, with any out-of-range days rolled over to the next month or year as needed.

                                                                                                        Instances For
                                                                                                          @[inline]

                                                                                                          Creates a new ZonedDateTime by adjusting the month to the given month value. The day remains unchanged, and any invalid days for the new month will be handled according to the clip behavior.

                                                                                                          Instances For
                                                                                                            @[inline]

                                                                                                            Creates a new ZonedDateTime by adjusting the month to the given month value. The day is rolled over to the next valid month if necessary.

                                                                                                            Instances For
                                                                                                              @[inline]

                                                                                                              Creates a new ZonedDateTime by adjusting the year to the given year value. The month and day remain unchanged, and any invalid days for the new year will be handled according to the clip behavior.

                                                                                                              Instances For
                                                                                                                @[inline]

                                                                                                                Creates a new ZonedDateTime by adjusting the year to the given year value. The month and day are rolled over to the next valid month and day if necessary.

                                                                                                                Instances For
                                                                                                                  @[inline]

                                                                                                                  Creates a new ZonedDateTime by adjusting the hour component.

                                                                                                                  Instances For
                                                                                                                    @[inline]

                                                                                                                    Creates a new ZonedDateTime by adjusting the minute component.

                                                                                                                    Instances For
                                                                                                                      @[inline]

                                                                                                                      Creates a new ZonedDateTime by adjusting the second component.

                                                                                                                      Instances For
                                                                                                                        @[inline]

                                                                                                                        Creates a new ZonedDateTime by adjusting the nano component with a new millis that will set in the millisecond scale.

                                                                                                                        Instances For
                                                                                                                          @[inline]

                                                                                                                          Creates a new ZonedDateTime by adjusting the nano component.

                                                                                                                          Instances For

                                                                                                                            Checks if the ZonedDateTime is in a leap year.

                                                                                                                            Instances For

                                                                                                                              Converts a ZonedDateTime to the number of days since the UNIX epoch.

                                                                                                                              Instances For
                                                                                                                                @[inline]

                                                                                                                                Converts a ZonedDateTime to the number of days since the UNIX epoch.

                                                                                                                                Instances For