Documentation

Std.Time.Date.Unit.Year

Defines the different eras.

  • bce : Era

    The era before the Common Era (BCE), always represents a date before year 0.

  • ce : Era

    The Common Era (CE), represents dates from year 0 onwards.

Instances For
    @[implicit_reducible]
    @[implicit_reducible]
    @[implicit_reducible]

    Offset represents a year offset, defined as an Int.

    Instances For
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[inline]

      Creates an Offset from a natural number.

      Instances For
        @[inline]

        Creates an Offset from an integer.

        Instances For
          @[inline]

          Converts the Year offset to an Int.

          Instances For
            @[inline]

            Converts the Year offset to a Month offset.

            Instances For
              @[inline]

              Determines if a year is a leap year in the proleptic Gregorian calendar.

              Instances For

                Returns the Era of the Year.

                Instances For

                  Calculates the number of days in the specified year.

                  Instances For

                    Calculates the number of weeks in the specified year.

                    Instances For
                      @[reducible, inline]

                      Checks if the given date is valid for the specified year, month, and day.

                      Instances For