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
    @[instance_reducible]
    Instances For
      @[instance_reducible]

      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").

      Instances For

        A zero Offset representing UTC (no offset).

        Instances For

          Creates an Offset from a given number of hour.

          Instances For

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

            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
                @[instance_reducible]
                def Std.Time.instDecidableEqTimeZone.decEq (x✝ x✝¹ : TimeZone) :
                Decidable (x✝ = x✝¹)
                Instances For

                  A zeroed Timezone representing UTC (no offset).

                  Instances For

                    A zeroed Timezone representing GMT (no offset).

                    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.

                      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.

                        Instances For

                          Gets the number of seconds in a timezone offset.

                          Instances For
                            @[inline]

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

                            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.

                              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.

                                Instances For
                                  @[inline]

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

                                  Instances For