TimeZone.this

Creates a GTimeZone corresponding to identifier. identifier can either be an RFC3339/ISO 8601 time offset or something that would pass as a valid value for the TZ environment variable (including NULL). Valid RFC3339 time offsets are "Z" (for UTC) or "±hh:mm". ISO 8601 additionally specifies "±hhmm" and "±hh". The TZ environment variable typically corresponds to the name of a file in the zoneinfo database, but there are many other possibilities. Note that those other possibilities are not currently implemented, but are planned. g_time_zone_new_local() calls this function with the value of the TZ environment variable. This function itself is independent of the value of TZ, but if identifier is NULL then /etc/localtime will be consulted to discover the correct timezone. See RFC3339 §5.6 for a precise definition of valid RFC3339 time offsets (the time-offset expansion) and ISO 8601 for the full list of valid time offsets. See The GNU C Library manual for an explanation of the possible values of the TZ environment variable. You should release the return value by calling g_time_zone_unref() when you are done with it. Since 2.26

  1. this(GTimeZone* gTimeZone)
  2. this(string identifier)
    class TimeZone
    this
    (
    string identifier
    )

Parameters

identifier string

a timezone identifier. [allow-none]

Throws

ConstructionException GTK+ fails to create the object.

Meta