⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datetime.sgml

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 SGML
📖 第 1 页 / 共 4 页
字号:
 <row>  <entry>Atlantic/Azores</entry> </row> <row>  <entry>Atlantic/Bermuda</entry> </row> <row>  <entry>Atlantic/Canary</entry> </row> <row>  <entry>Atlantic/Cape_Verde</entry> </row> <row>  <entry>Atlantic/Faeroe</entry> </row> <row>  <entry>Atlantic/Madeira</entry> </row> <row>  <entry>Atlantic/Reykjavik Iceland</entry> </row> <row>  <entry>Atlantic/South_Georgia</entry> </row> <row>  <entry>Atlantic/St_Helena</entry> </row> <row>  <entry>Atlantic/Stanley</entry> </row> <row>  <entry>Australia/ACT Australia/Canberra Australia/NSW Australia/Sydney</entry> </row> <row>  <entry>Australia/Adelaide Australia/South</entry> </row> <row>  <entry>Australia/Brisbane Australia/Queensland</entry> </row> <row>  <entry>Australia/Broken_Hill Australia/Yancowinna</entry> </row> <row>  <entry>Australia/Darwin Australia/North</entry> </row> <row>  <entry>Australia/Hobart Australia/Tasmania</entry> </row> <row>  <entry>Australia/LHI Australia/Lord_Howe</entry> </row> <row>  <entry>Australia/Lindeman</entry> </row> <row>  <entry>Australia/Melbourne Australia/Victoria</entry> </row> <row>  <entry>Australia/Perth Australia/West</entry> </row> <row>  <entry>CET</entry> </row> <row>  <entry>EET</entry> </row> <row>  <entry>Etc/GMT+1</entry> </row> <row>  <entry>Etc/GMT+2</entry> </row> <row>  <entry>Etc/GMT+3</entry> </row> <row>  <entry>Etc/GMT+4</entry> </row> <row>  <entry>Etc/GMT+5</entry> </row> <row>  <entry>Etc/GMT+6</entry> </row> <row>  <entry>Etc/GMT+7</entry> </row> <row>  <entry>Etc/GMT+8</entry> </row> <row>  <entry>Etc/GMT+9</entry> </row> <row>  <entry>Etc/GMT+10</entry> </row> <row>  <entry>Etc/GMT+11</entry> </row> <row>  <entry>Etc/GMT+12</entry> </row> <row>  <entry>Etc/GMT-1</entry> </row> <row>  <entry>Etc/GMT-2</entry> </row> <row>  <entry>Etc/GMT-3</entry> </row> <row>  <entry>Etc/GMT-4</entry> </row> <row>  <entry>Etc/GMT-5</entry> </row> <row>  <entry>Etc/GMT-6</entry> </row> <row>  <entry>Etc/GMT-7</entry> </row> <row>  <entry>Etc/GMT-8</entry> </row> <row>  <entry>Etc/GMT-9</entry> </row> <row>  <entry>Etc/GMT-10</entry> </row> <row>  <entry>Etc/GMT-11</entry> </row> <row>  <entry>Etc/GMT-12</entry> </row> <row>  <entry>Etc/GMT-13</entry> </row> <row>  <entry>Etc/GMT-14</entry> </row> <row>  <entry>Europe/Amsterdam</entry> </row> <row>  <entry>Europe/Andorra</entry> </row> <row>  <entry>Europe/Athens</entry> </row> <row>  <entry>Europe/Belfast</entry> </row> <row>  <entry>Europe/Belgrade Europe/Ljubljana Europe/Sarajevo Europe/Skopje Europe/Zagreb</entry> </row> <row>  <entry>Europe/Berlin</entry> </row> <row>  <entry>Europe/Brussels</entry> </row> <row>  <entry>Europe/Bucharest</entry> </row> <row>  <entry>Europe/Budapest</entry> </row> <row>  <entry>Europe/Chisinau Europe/Tiraspol</entry> </row> <row>  <entry>Europe/Copenhagen</entry> </row> <row>  <entry>Europe/Dublin Eire</entry> </row> <row>  <entry>Europe/Gibraltar</entry> </row> <row>  <entry>Europe/Helsinki</entry> </row> <row>  <entry>Europe/Istanbul Asia/Istanbul Turkey</entry> </row> <row>  <entry>Europe/Kaliningrad</entry> </row> <row>  <entry>Europe/Kiev</entry> </row> <row>  <entry>Europe/Lisbon Portugal</entry> </row> <row>  <entry>Europe/London GB GB-Eire</entry> </row> <row>  <entry>Europe/Luxembourg</entry> </row> <row>  <entry>Europe/Madrid</entry> </row> <row>  <entry>Europe/Malta</entry> </row> <row>  <entry>Europe/Minsk</entry> </row> <row>  <entry>Europe/Monaco</entry> </row> <row>  <entry>Europe/Moscow W-SU</entry> </row> <row>  <entry>Europe/Oslo Arctic/Longyearbyen Atlantic/Jan_Mayen</entry> </row> <row>  <entry>Europe/Paris</entry> </row> <row>  <entry>Europe/Prague Europe/Bratislava</entry> </row> <row>  <entry>Europe/Riga</entry> </row> <row>  <entry>Europe/Rome Europe/San_Marino Europe/Vatican</entry> </row> <row>  <entry>Europe/Samara</entry> </row> <row>  <entry>Europe/Simferopol</entry> </row> <row>  <entry>Europe/Sofia</entry> </row> <row>  <entry>Europe/Stockholm</entry> </row> <row>  <entry>Europe/Tallinn</entry> </row> <row>  <entry>Europe/Tirane</entry> </row> <row>  <entry>Europe/Uzhgorod</entry> </row> <row>  <entry>Europe/Vaduz</entry> </row> <row>  <entry>Europe/Vienna</entry> </row> <row>  <entry>Europe/Vilnius</entry> </row> <row>  <entry>Europe/Warsaw Poland</entry> </row> <row>  <entry>Europe/Zaporozhye</entry> </row> <row>  <entry>Europe/Zurich</entry> </row> <row>  <entry>Factory</entry> </row> <row>  <entry>GMT GMT+0 GMT-0 GMT0 Greenwich Etc/GMT Etc/GMT+0 Etc/GMT-0 Etc/GMT0 Etc/Greenwich</entry> </row> <row>  <entry>Indian/Antananarivo</entry> </row> <row>  <entry>Indian/Chagos</entry> </row> <row>  <entry>Indian/Christmas</entry> </row> <row>  <entry>Indian/Cocos</entry> </row> <row>  <entry>Indian/Comoro</entry> </row> <row>  <entry>Indian/Kerguelen</entry> </row> <row>  <entry>Indian/Mahe</entry> </row> <row>  <entry>Indian/Maldives</entry> </row> <row>  <entry>Indian/Mauritius</entry> </row> <row>  <entry>Indian/Mayotte</entry> </row> <row>  <entry>Indian/Reunion</entry> </row> <row>  <entry>MET</entry> </row> <row>  <entry>Pacific/Apia</entry> </row> <row>  <entry>Pacific/Auckland NZ</entry> </row> <row>  <entry>Pacific/Chatham NZ-CHAT</entry> </row> <row>  <entry>Pacific/Easter Chile/EasterIsland</entry> </row> <row>  <entry>Pacific/Efate</entry> </row> <row>  <entry>Pacific/Enderbury</entry> </row> <row>  <entry>Pacific/Fakaofo</entry> </row> <row>  <entry>Pacific/Fiji</entry> </row> <row>  <entry>Pacific/Funafuti</entry> </row> <row>  <entry>Pacific/Galapagos</entry> </row> <row>  <entry>Pacific/Gambier SystemV/YST9</entry> </row> <row>  <entry>Pacific/Guadalcanal</entry> </row> <row>  <entry>Pacific/Guam</entry> </row> <row>  <entry>Pacific/Honolulu HST SystemV/HST10 US/Hawaii</entry> </row> <row>  <entry>Pacific/Johnston</entry> </row> <row>  <entry>Pacific/Kiritimati</entry> </row> <row>  <entry>Pacific/Kosrae</entry> </row> <row>  <entry>Pacific/Kwajalein Kwajalein</entry> </row> <row>  <entry>Pacific/Majuro</entry> </row> <row>  <entry>Pacific/Marquesas</entry> </row> <row>  <entry>Pacific/Midway</entry> </row> <row>  <entry>Pacific/Nauru</entry> </row> <row>  <entry>Pacific/Niue</entry> </row> <row>  <entry>Pacific/Norfolk</entry> </row> <row>  <entry>Pacific/Noumea</entry> </row> <row>  <entry>Pacific/Pago_Pago Pacific/Samoa US/Samoa</entry> </row> <row>  <entry>Pacific/Palau</entry> </row> <row>  <entry>Pacific/Pitcairn SystemV/PST8</entry> </row> <row>  <entry>Pacific/Ponape</entry> </row> <row>  <entry>Pacific/Port_Moresby</entry> </row> <row>  <entry>Pacific/Rarotonga</entry> </row> <row>  <entry>Pacific/Saipan</entry> </row> <row>  <entry>Pacific/Tahiti</entry> </row> <row>  <entry>Pacific/Tarawa</entry> </row> <row>  <entry>Pacific/Tongatapu</entry> </row> <row>  <entry>Pacific/Truk</entry> </row> <row>  <entry>Pacific/Wake</entry> </row> <row>  <entry>Pacific/Wallis</entry> </row> <row>  <entry>Pacific/Yap</entry> </row> <row>  <entry>UCT Etc/UCT</entry> </row> <row>  <entry>UTC Universal Zulu Etc/UTC Etc/Universal Etc/Zulu</entry> </row> <row>  <entry>WET</entry> </row></tbody>     </tgroup>    </table>   <para>    In addition to the names listed in the table,    <productname>PostgreSQL</productname> will accept time zone names of the    form <replaceable>STD</><replaceable>offset</> or    <replaceable>STD</><replaceable>offset</><replaceable>DST</>, where    <replaceable>STD</> is a zone abbreviation, <replaceable>offset</> is a    numeric offset in hours west from UTC, and <replaceable>DST</> is an    optional daylight-savings zone abbreviation, assumed to stand for one hour    ahead of the given offset.  For example, if <literal>EST5EDT</> were not    already a recognized zone name, it would be accepted and would be    functionally equivalent to USA East Coast time.  When a daylight-savings    zone name is present, it is assumed to be used according to USA time zone    rules, so this feature is of limited use outside North America.    One should also be wary that this provision can lead to    silently accepting bogus input, since there is no check on the    reasonableness of the zone abbreviations.  For example,    <literal>SET TIMEZONE TO FOOBAR0</> will work, leaving the system    effectively using a rather peculiar abbreviation for GMT.   </para>  </sect1>  <sect1 id="datetime-units-history">  <title>History of Units</title>  <para>   The Julian Date was invented by the French scholar   Joseph Justus Scaliger (1540-1609)   and probably takes its name from Scaliger's father,   the Italian scholar Julius Caesar Scaliger (1484-1558).   Astronomers have used the Julian period to assign a unique number to   every day since 1 January 4713 BC. This is the so-called Julian Date   (JD). JD 0 designates the 24 hours from noon UTC on 1 January 4713 BC   to noon UTC on 2 January 4713 BC.  </para>   <para>   The <quote>Julian Date</quote> is different from the <quote>Julian   Calendar</quote>.  The Julian calendar   was introduced by Julius Caesar in 45 BC. It was in common use   until the year 1582, when countries started changing to the Gregorian   calendar.  In the Julian calendar, the tropical year is   approximated as 365 1/4 days = 365.25 days. This gives an error of   about 1 day in 128 years.  </para>  <para>      The accumulating calendar error prompted   Pope Gregory XIII to reform the calendar in accordance with   instructions from the Council of Trent.   In the Gregorian calendar, the tropical year is approximated as   365 + 97 / 400 days = 365.2425 days. Thus it takes approximately 3300   years for the tropical year to shift one day with respect to the   Gregorian calendar.  </para>  <para>   The approximation 365+97/400 is achieved by having 97 leap years   every 400 years, using the following rules:   <simplelist>    <member>     Every year divisible by 4 is a leap year.    </member>    <member>     However, every year divisible by 100 is not a leap year.    </member>    <member>     However, every year divisible by 400 is a leap year after all.    </member>   </simplelist>   So, 1700, 1800, 1900, 2100, and 2200 are not leap years. But 1600,   2000, and 2400 are leap years.   By contrast, in the older Julian calendar all years divisible by 4 are leap   years.  </para>  <para>   The papal bull of February 1582 decreed that 10 days should be dropped   from October 1582 so that 15 October should follow immediately after   4 October.   This was observed in Italy, Poland, Portugal, and Spain. Other Catholic   countries followed shortly after, but Protestant countries were   reluctant to change, and the Greek orthodox countries didn't change   until the start of the 20th century.   The reform was observed by Great Britain and Dominions (including what is   now the USA) in 1752.   Thus 2 September 1752 was followed by 14 September 1752.   This is why Unix systems have the <command>cal</command> program   produce the following:<screen>$ <userinput>cal 9 1752</userinput>   September 1752 S  M Tu  W Th  F  S       1  2 14 15 1617 18 19 20 21 22 2324 25 26 27 28 29 30</screen>  </para>   <note>    <para>     The SQL standard states that <quote>Within the definition of a     <quote>datetime literal</quote>, the <quote>datetime     value</quote>s are constrained by the natural rules for dates and     times according to the Gregorian calendar</quote>.  Dates between     1752-09-03 and 1752-09-13, although eliminated in some countries     by Papal fiat, conform to <quote>natural rules</quote> and are     hence valid dates.    </para>   </note>  <para>   Different calendars have been developed in various parts of the   world, many predating the Gregorian system.   For example,   the beginnings of the Chinese calendar can be traced back to the 14th   century BC. Legend has it that the Emperor Huangdi invented the   calendar in 2637 BC.      The People's Republic of China uses the Gregorian calendar   for civil purposes. The Chinese calendar is used for determining   festivals.  </para> </sect1></appendix><!-- Keep this comment at the end of the fileLocal variables:mode:sgmlsgml-omittag:nilsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tsgml-parent-document:nilsgml-default-dtd-file:"./reference.ced"sgml-exposed-tags:nilsgml-local-catalogs:("/usr/lib/sgml/catalog")sgml-local-ecat-files:nilEnd:-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -