|
269 | 269 | は<code class="type">timestamp with time zone</code>になります。 |
270 | 270 | <span class="productname">PostgreSQL</span>では、その型を決める前に文字列リテラルの内容を検証しません。 |
271 | 271 | そのため上の例はいずれも<code class="type">timestamp without time zone</code>として扱います。 |
272 | | -リテラルが確実に<code class="type">timestamp with time zone</code>として扱われるようにするには、例えば、 |
| 272 | +リテラルが確実に<code class="type">timestamp with time zone</code>として扱われるようにするには、例えば、以下のように正しい明示的な型を指定してください。 |
273 | 273 |
|
274 | 274 | </p><pre class="programlisting"> |
275 | 275 | TIMESTAMP WITH TIME ZONE '2004-10-19 10:23:54+02' |
|
282 | 282 | That is, the resulting value is derived from the date/time |
283 | 283 | fields in the input string, and is not adjusted for time zone. |
284 | 284 | </span> |
285 | | -《マッチ度[85.172414]》のように正しい明示的な型を指定してください。 |
286 | | -<code class="type">timestamp without time zone</code>と決定済みのリテラルでは、<span class="productname">PostgreSQL</span>は警告なく時間帯情報をすべて無視します。 |
287 | | -つまり、結果の値は明示された入力値の日付/時刻フィールドから持ち込まれますが、時間帯の調整はなされません。 |
288 | | -《機械翻訳》<code class="type">timestamp without time zone</code>と決定された値では、<span class="productname">PostgreSQL</span>はタイムゾーンの表示をすべて無視します。 |
289 | | -つまり、結果の値は入力された文字列の日付/時刻フィールドから導出され、タイムゾーンに合わせて調整されません。 |
| 285 | +<code class="type">timestamp without time zone</code>と決定済みの値では、<span class="productname">PostgreSQL</span>は警告なく時間帯情報をすべて無視します。 |
| 286 | +つまり、結果の値は明示された入力文字列の日付/時刻フィールドから持ち込まれますが、時間帯の調整はなされません。 |
290 | 287 | </p><p> |
291 | 288 | <span class="original"> |
292 | 289 | For <type>timestamp with time zone</type> values, an input string |
|
300 | 297 | In either case, the value is stored internally as UTC, and the |
301 | 298 | originally stated or assumed time zone is not retained. |
302 | 299 | </span> |
303 | | -《機械翻訳》<code class="type">timestamp with time zone</code>値の場合、明示的なタイムゾーンを含む入力された文字列は、そのタイムゾーンの適切なオフセットを使用してUTC<a class="glossterm" href="glossary.html#GLOSSARY-UTC"><em class="glossterm"><a class="glossterm" href="glossary.html#GLOSSARY-UTC" title="UTC">協定世界時</a></em></a>に変換されます。 |
304 | | -入力された文字列にタイムゾーンが指定されていない場合は、システムの<a class="xref" href="runtime-config-client.html#GUC-TIMEZONE">TimeZone</a>パラメータが示すタイムゾーンにあるとみなされ、<code class="varname">timezone</code>ゾーン.のオフセットを使用してUTCに変換されます。 |
305 | | -どちらのケースでも、値は内部的にUTCとして格納され、最初に指定または想定されたタイムゾーンは保持されません。 |
| 300 | +<code class="type">timestamp with time zone</code>値の場合、明示的な時間帯を含む入力された文字列は、その時間帯の適切なオフセットを使用してUTC(<a class="glossterm" href="glossary.html#GLOSSARY-UTC"><em class="glossterm"><a class="glossterm" href="glossary.html#GLOSSARY-UTC" title="UTC">協定世界時</a></em></a>)に変換されます。 |
| 301 | +入力文字列に時間帯が指定されていない場合は、システムの<a class="xref" href="runtime-config-client.html#GUC-TIMEZONE">TimeZone</a>パラメータに示されている値が時間帯とみなされ、<code class="varname">timezone</code>時間帯用のオフセットを使用してUTCに変換されます。 |
| 302 | +どちらのケースでも、値は内部的にUTCとして格納され、最初に指定または想定された時間帯は保持されません。 |
306 | 303 | </p><p> |
307 | 304 | <span class="original"> |
308 | 305 | When a <type>timestamp with time |
|
0 commit comments