Documentation

Std.Time.Zoned.TimeZone

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
    @[implicit_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