Documentation

Std.Time.Zoned.TimeZone

Represents a timezone offset as a total number of seconds from UTC.

  • ofSeconds :: (
  • )
Instances For
    theorem Std.Time.TimeZone.Offset.ext {x y : Offset} (second : x.second = y.second) :
    x = y
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      Instances For
        @[implicit_reducible]
        Equations

        Converts an Offset to a string in ISO 8601 format. The colon parameter determines if the hour and minute components are separated by a colon (e.g., "+01:00" or "+0100").

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

          A zero Offset representing UTC (no offset).

          Equations
          Instances For

            Creates an Offset from a given number of hour.

            Equations
            Instances For

              Creates an Offset from a given number of hours and minutes.

              Equations
              Instances For

                A TimeZone structure that stores the timezone offset, the name, abbreviation and if it's in daylight saving time.

                • offset : Offset

                  The Offset of the date time.

                • name : String

                  The name of the time zone.

                • abbreviation : String

                  The abbreviation of the time zone.

                • isDST : Bool

                  Day light saving flag.

                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Std.Time.instDecidableEqTimeZone.decEq (x✝ x✝¹ : TimeZone) :
                    Decidable (x✝ = x✝¹)
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      A zeroed Timezone representing UTC (no offset).

                      Equations
                      Instances For

                        A zeroed Timezone representing GMT (no offset).

                        Equations
                        Instances For
                          def Std.Time.TimeZone.ofHours (name abbreviation : String) (n : Hour.Offset) (isDST : Bool := false) :

                          Creates a Timestamp from a given number of hour.

                          Equations
                          Instances For
                            def Std.Time.TimeZone.ofSeconds (name abbreviation : String) (n : Second.Offset) (isDST : Bool := false) :

                            Creates a Timestamp from a given number of second.

                            Equations
                            Instances For

                              Gets the number of seconds in a timezone offset.

                              Equations
                              Instances For
                                @[inline]

                                Converts a Timestamp to a WallTime for a given timezone offset. The result is the local civil time: wall = UTC + offset.

                                Equations
                                Instances For
                                  @[inline]

                                  Creates a Timestamp from a WallTime and a timezone offset. Assumes the WallTime represents civil time at the given offset: UTC = wall − offset.

                                  Equations
                                  Instances For
                                    @[inline]

                                    Converts a WallTime to a Timestamp given a timezone offset. The WallTime is treated as civil time at the given offset: UTC = wall − offset.

                                    Equations
                                    Instances For
                                      @[inline]

                                      Creates a WallTime from a Timestamp given a timezone offset. The result is the local civil time: wall = UTC + offset.

                                      Equations
                                      Instances For