over 4 years ago

## GMT v.s. Etc/GMT

Awesome! 這不就是我們需要的選項。馬上就選了 GMT+8 來測試一下。

### Etc/GMT

Area is the name of a continent, an ocean, or "Etc". The continents and oceans currently include: Africa, America, Antarctica, Arctic, Asia, Atlantic, Australia, Europe, Indian, and Pacific.

The special area of "Etc" is used for some administrative zones, particularly for "Etc/UTC" which represents Coordinated Universal Time. In order to conform with the POSIX style, those zone names beginning with "Etc/GMT" have their sign reversed from what most people expect. In this style, zones west of GMT have a positive sign and those east have a negative sign in their name (e.g "Etc/GMT-14" is 14 hours ahead/east of GMT.)

Etc 後面接著的 GMT 偏移量是與現實中相反的。也就是以正數表示格林威治 (Greenwich) 以西，以負數表示格林威治以東。

### 由來

The POSIX TZ string takes the following form:

where:

std and dst are 3 or more characters specifying the standard and daylight saving time (DST) zone names. Starting with POSIX.1-2001, std and dst may also be in a quoted form like <UTC+10>; this allows "+" and "-" in the names.

offset is of the form '[+-]hh:[mm[:ss]]' and specifies the offset west of UT. 'hh' may be a single digit; 0<=hh<=24. The default DST offset is one hour ahead of standard time.