Documentation

Std.Time.DateTime

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 DateTime out of a Timestamp and a ZoneRules.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[inline]

      Creates a new DateTime out of a PlainDateTime and a ZoneRules. It assumes PlainDateTime is the local time.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[inline]

        Creates a new DateTime out of a PlainDateTime and a TimeZone. It assumes PlainDateTime is the local time.

        Equations
        Instances For
          @[inline]

          Creates a new Timestamp out of a DateTime.

          Equations
          Instances For
            @[inline]

            Changes the ZoneRules to a new one.

            Equations
            Instances For
              @[inline]

              Converts a DateTime to a PlainDateTime

              Equations
              Instances For
                @[inline]

                Getter for the PlainTime inside of a DateTime

                Equations
                Instances For
                  @[inline]

                  Getter for the Year inside of a DateTime

                  Equations
                  Instances For
                    @[inline]

                    Getter for the Month inside of a DateTime

                    Equations
                    Instances For
                      @[inline]

                      Getter for the Day inside of a DateTime

                      Equations
                      Instances For
                        @[inline]

                        Getter for the Hour inside of a DateTime

                        Equations
                        Instances For
                          @[inline]

                          Getter for the Minute inside of a DateTime

                          Equations
                          Instances For
                            @[inline]

                            Getter for the Second inside of a DateTime

                            Equations
                            Instances For
                              @[inline]

                              Getter for the Millisecond inside of a DateTime.

                              Equations
                              Instances For
                                @[inline]

                                Getter for the Nanosecond inside of a DateTime

                                Equations
                                Instances For
                                  @[inline]

                                  Getter for the TimeZone.Offset inside of a DateTime

                                  Equations
                                  Instances For
                                    @[inline]

                                    Returns the weekday.

                                    Equations
                                    Instances For
                                      @[inline]

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

                                      Equations
                                      Instances For
                                        @[inline]

                                        Determines the week of the year for the given DateTime, using firstDay as the start of the week.

                                        Equations
                                        Instances For
                                          @[inline]

                                          Returns the week-based year for the given DateTime, using firstDay as the start of the week. The week-based year may differ from the calendar year for dates near the start or end of the year.

                                          Equations
                                          Instances For

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

                                            Equations
                                            Instances For
                                              @[inline]

                                              Determines the week of the month for the given DateTime, using firstDay as the start of the week.

                                              Equations
                                              Instances For
                                                @[inline]

                                                Determines the quarter of the year for the given DateTime.

                                                Equations
                                                Instances For

                                                  Add Day.Offset to a DateTime.

                                                  Equations
                                                  Instances For

                                                    Subtract Day.Offset from a DateTime.

                                                    Equations
                                                    Instances For

                                                      Add Week.Offset to a DateTime.

                                                      Equations
                                                      Instances For

                                                        Subtract Week.Offset from a DateTime.

                                                        Equations
                                                        Instances For

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

                                                          Equations
                                                          Instances For

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

                                                            Equations
                                                            Instances For

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

                                                              Equations
                                                              Instances For

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

                                                                Equations
                                                                Instances For

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

                                                                  Equations
                                                                  Instances For

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

                                                                    Equations
                                                                    Instances For

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

                                                                      Equations
                                                                      Instances For

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

                                                                        Equations
                                                                        Instances For

                                                                          Add Hour.Offset to a DateTime.

                                                                          Equations
                                                                          Instances For

                                                                            Subtract Hour.Offset from a DateTime.

                                                                            Equations
                                                                            Instances For

                                                                              Add Minute.Offset to a DateTime.

                                                                              Equations
                                                                              Instances For

                                                                                Subtract Minute.Offset from a DateTime.

                                                                                Equations
                                                                                Instances For
                                                                                  @[inline]

                                                                                  Add Millisecond.Offset to a DateTime.

                                                                                  Equations
                                                                                  Instances For
                                                                                    @[inline]

                                                                                    Subtract Millisecond.Offset from a DateTime.

                                                                                    Equations
                                                                                    Instances For

                                                                                      Add Second.Offset to a DateTime.

                                                                                      Equations
                                                                                      Instances For

                                                                                        Subtract Second.Offset from a DateTime.

                                                                                        Equations
                                                                                        Instances For

                                                                                          Add Nanosecond.Offset to a DateTime.

                                                                                          Equations
                                                                                          Instances For

                                                                                            Subtract Nanosecond.Offset from a DateTime.

                                                                                            Equations
                                                                                            Instances For
                                                                                              @[inline]

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

                                                                                              Equations
                                                                                              Instances For

                                                                                                Sets the DateTime to the specified desiredWeekday.

                                                                                                Equations
                                                                                                Instances For
                                                                                                  @[inline]

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

                                                                                                  Equations
                                                                                                  Instances For
                                                                                                    @[inline]

                                                                                                    Creates a new DateTime 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.

                                                                                                    Equations
                                                                                                    Instances For
                                                                                                      @[inline]

                                                                                                      Creates a new DateTime 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.

                                                                                                      Equations
                                                                                                      Instances For
                                                                                                        @[inline]

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

                                                                                                        Equations
                                                                                                        Instances For
                                                                                                          @[inline]

                                                                                                          Creates a new DateTime 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.

                                                                                                          Equations
                                                                                                          Instances For
                                                                                                            @[inline]

                                                                                                            Creates a new DateTime 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.

                                                                                                            Equations
                                                                                                            Instances For
                                                                                                              @[inline]

                                                                                                              Creates a new DateTime by adjusting the hour component.

                                                                                                              Equations
                                                                                                              Instances For
                                                                                                                @[inline]

                                                                                                                Creates a new DateTime by adjusting the minute component.

                                                                                                                Equations
                                                                                                                Instances For
                                                                                                                  @[inline]

                                                                                                                  Creates a new DateTime by adjusting the second component.

                                                                                                                  Equations
                                                                                                                  Instances For
                                                                                                                    @[inline]

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

                                                                                                                    Equations
                                                                                                                    Instances For
                                                                                                                      @[inline]

                                                                                                                      Creates a new DateTime by adjusting the nano component.

                                                                                                                      Equations
                                                                                                                      Instances For

                                                                                                                        Checks if the DateTime is in a leap year.

                                                                                                                        Equations
                                                                                                                        Instances For

                                                                                                                          Returns the local (civil) date of the DateTime as a Day.Offset relative to 1970-01-01.

                                                                                                                          Equations
                                                                                                                          Instances For
                                                                                                                            @[inline]

                                                                                                                            Creates a DateTime from a local date given as a Day.Offset relative to 1970-01-01, a PlainTime, and ZoneRules. The day offset is interpreted as a local (civil) date, not UTC.

                                                                                                                            Equations
                                                                                                                            Instances For