Documentation

Std.Time.DateTime.PlainDateTime

Represents a date and time with components for Year, Month, Day, Hour, Minute, Second, and Nanosecond.

  • date : PlainDate

    The Date component of a PlainDate

  • time : PlainTime

    The Time component of a PlainTime

Instances For
    theorem Std.Time.PlainDateTime.ext {x y : PlainDateTime} (date : x.date = y.date) (time : x.time = y.time) :
    x = y
    Instances For
      @[implicit_reducible]

      Converts a PlainDateTime to a WallTime.

      Instances For

        Converts a WallTime to a PlainDateTime.

        Instances For
          @[inline]

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

          Instances For
            @[inline]

            Converts the number of days relative to 1970-01-01 as a PlainDateTime.

            Instances For

              Sets the PlainDateTime to the specified Weekday.

              Instances For
                @[inline]

                Creates a new PlainDateTime 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 PlainDateTime 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 PlainDateTime by adjusting the month to the given month value, with any out-of-range days clipped to the nearest valid date.

                    Instances For
                      @[inline]

                      Creates a new PlainDateTime 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 PlainDateTime by adjusting the year to the given year value. The month and day remain unchanged, with any out-of-range days clipped to the nearest valid date.

                        Instances For
                          @[inline]

                          Creates a new PlainDateTime 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 PlainDateTime by adjusting the hour component of its time to the given value.

                            Instances For
                              @[inline]

                              Creates a new PlainDateTime by adjusting the minute component of its time to the given value.

                              Instances For
                                @[inline]

                                Creates a new PlainDateTime by adjusting the second component of its time to the given value.

                                Instances For
                                  @[inline]

                                  Creates a new PlainDateTime by adjusting the milliseconds component inside the nano component of its time to the given value.

                                  Instances For
                                    @[inline]

                                    Creates a new PlainDateTime by adjusting the nano component of its time to the given value.

                                    Instances For
                                      @[inline]

                                      Adds a Day.Offset to a PlainDateTime.

                                      Instances For
                                        @[inline]

                                        Subtracts a Day.Offset from a PlainDateTime.

                                        Instances For
                                          @[inline]

                                          Adds a Week.Offset to a PlainDateTime.

                                          Instances For
                                            @[inline]

                                            Subtracts a Week.Offset from a PlainDateTime.

                                            Instances For

                                              Adds a Month.Offset to a PlainDateTime, adjusting the day to the last valid day of the resulting month.

                                              Instances For
                                                @[inline]

                                                Subtracts Month.Offset from a PlainDateTime, it clips the day to the last valid day of that month.

                                                Instances For

                                                  Adds a Month.Offset to a PlainDateTime, rolling over excess days to the following month if needed.

                                                  Instances For
                                                    @[inline]

                                                    Subtracts a Month.Offset from a PlainDateTime, adjusting the day to the last valid day of the resulting month.

                                                    Instances For
                                                      @[inline]

                                                      Adds a Month.Offset to a PlainDateTime, rolling over excess days to the following month if needed.

                                                      Instances For
                                                        @[inline]

                                                        Subtracts a Month.Offset from a PlainDateTime, rolling over excess days to the following month if needed.

                                                        Instances For
                                                          @[inline]

                                                          Subtracts a Year.Offset from a PlainDateTime, this function rolls over any excess days into the following month.

                                                          Instances For
                                                            @[inline]

                                                            Subtracts a Year.Offset from a PlainDateTime, adjusting the day to the last valid day of the resulting month.

                                                            Instances For
                                                              @[inline]

                                                              Adds a Nanosecond.Offset to a PlainDateTime, adjusting the seconds, minutes, hours, and date if the nanoseconds overflow.

                                                              Instances For
                                                                @[inline]

                                                                Subtracts a Nanosecond.Offset from a PlainDateTime, adjusting the seconds, minutes, hours, and date if the nanoseconds underflow.

                                                                Instances For
                                                                  @[inline]

                                                                  Adds an Hour.Offset to a PlainDateTime, adjusting the date if the hour overflows.

                                                                  Instances For
                                                                    @[inline]

                                                                    Subtracts an Hour.Offset from a PlainDateTime, adjusting the date if the hour underflows.

                                                                    Instances For
                                                                      @[inline]

                                                                      Adds a Minute.Offset to a PlainDateTime, adjusting the hour and date if the minutes overflow.

                                                                      Instances For
                                                                        @[inline]

                                                                        Subtracts a Minute.Offset from a PlainDateTime, adjusting the hour and date if the minutes underflow.

                                                                        Instances For
                                                                          @[inline]

                                                                          Adds a Second.Offset to a PlainDateTime, adjusting the minute, hour, and date if the seconds overflow.

                                                                          Instances For
                                                                            @[inline]

                                                                            Subtracts a Second.Offset from a PlainDateTime, adjusting the minute, hour, and date if the seconds underflow.

                                                                            Instances For
                                                                              @[inline]

                                                                              Adds a Millisecond.Offset to a PlainDateTime, adjusting the second, minute, hour, and date if the milliseconds overflow.

                                                                              Instances For
                                                                                @[inline]

                                                                                Subtracts a Millisecond.Offset from a PlainDateTime, adjusting the second, minute, hour, and date if the milliseconds underflow.

                                                                                Instances For
                                                                                  @[inline]

                                                                                  Getter for the Year inside of a PlainDateTime.

                                                                                  Instances For
                                                                                    @[inline]

                                                                                    Getter for the Month inside of a PlainDateTime.

                                                                                    Instances For
                                                                                      @[inline]

                                                                                      Getter for the Day inside of a PlainDateTime.

                                                                                      Instances For
                                                                                        @[inline]

                                                                                        Getter for the Weekday inside of a PlainDateTime.

                                                                                        Instances For
                                                                                          @[inline]

                                                                                          Getter for the Hour inside of a PlainDateTime.

                                                                                          Instances For
                                                                                            @[inline]

                                                                                            Getter for the Minute inside of a PlainDateTime.

                                                                                            Instances For
                                                                                              @[inline]

                                                                                              Getter for the Millisecond inside of a PlainDateTime.

                                                                                              Instances For
                                                                                                @[inline]

                                                                                                Getter for the Second inside of a PlainDateTime.

                                                                                                Instances For
                                                                                                  @[inline]

                                                                                                  Getter for the Nanosecond.Ordinal inside of a PlainDateTime.

                                                                                                  Instances For
                                                                                                    @[inline]

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

                                                                                                    Instances For
                                                                                                      @[inline]

                                                                                                      Checks if the PlainDateTime is in a leap year.

                                                                                                      Instances For
                                                                                                        @[inline]

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

                                                                                                        Instances For
                                                                                                          @[inline]

                                                                                                          Returns the week-based year for the given PlainDateTime, 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.

                                                                                                          Instances For

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

                                                                                                            Instances For
                                                                                                              @[inline]

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

                                                                                                              Instances For
                                                                                                                @[inline]

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

                                                                                                                Instances For
                                                                                                                  @[inline]

                                                                                                                  Determines the quarter of the year for the given PlainDateTime.

                                                                                                                  Instances For
                                                                                                                    @[inline]

                                                                                                                    Combines a PlainDate and PlainTime into a PlainDateTime.

                                                                                                                    Instances For
                                                                                                                      @[inline]

                                                                                                                      Combines a PlainTime and PlainDate into a PlainDateTime.

                                                                                                                      Instances For
                                                                                                                        @[inline]

                                                                                                                        Combines a PlainDate and PlainTime into a PlainDateTime.

                                                                                                                        Instances For
                                                                                                                          @[inline]

                                                                                                                          Combines a PlainTime and PlainDate into a PlainDateTime.

                                                                                                                          Instances For