<!--
$Header: /usr/prj/pg/cvsroot/doc/doc/src/sgml/ref/current_timestamp.sgml,v 1.6 2001/09/06 10:38:51 i-kaori Exp $
Postgres documentation
-->

<REFENTRY ID="SQL-CURRENT-TIMESTAMP">
 <REFMETA>
  <REFENTRYTITLE>
   SQL_CURRENT_TIMESTAMP
  </REFENTRYTITLE>
  <REFMISCINFO>SQL - Functions</REFMISCINFO>

  <REFMISCINFO>SQL - 関数</REFMISCINFO>

 </REFMETA>
 <REFNAMEDIV>
  <REFNAME>
   CURRENT_TIMESTAMP
  </REFNAME>
  <REFPURPOSE>
   Returns the current date and time
  </REFPURPOSE>

  <REFPURPOSE>
   現在の日付と時刻を返します。
  </REFPURPOSE>

 <REFSYNOPSISDIV>
  <REFSYNOPSISDIVINFO>
   <DATE>1998-04-15</DATE>
  </REFSYNOPSISDIVINFO>
<synopsis>
  CURRENT_TIMESTAMP 
</SYNOPSIS>
  
  <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-1">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
    Inputs
   </TITLE>

   <TITLE>
    引数
   </TITLE>

   <para>
   None.

   <para>
   ありません。


  </REFSECT2>
  
  <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-2">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
    Outputs
   </TITLE>

   <TITLE>
    返り値
   </TITLE>

   <para>
       <VARIABLELIST>
	<VARLISTENTRY>
	 <TERM>
<replaceable>timestamp</replaceable>

	 <LISTITEM>
	  <para>
	  Returns "<replaceable class="parameter">today</replaceable>"
	  and "<replaceable class="parameter">now</replaceable>".

          <para>
	  "<replaceable class="parameter">today</replaceable>" と
	  "<replaceable class="parameter">now</replaceable>"を返します。

   </VARIABLELIST>
  </REFSECT2>
 </REFSYNOPSISDIV>
 
 <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-1">
  <REFSECT1INFO>
   <DATE>1998-04-15</DATE>
  </REFSECT1INFO>
  <TITLE>
   Description
  </TITLE>

  <TITLE>
   記述
  </TITLE>

  <para>
   The niladic CURRENT_TIMESTAMP function has a data type of
   TIMESTAMP and returns the date and local time at which it is run.
  </para>

  <para>
   CURRENT_TIMESTAMP に関するニラディック関数 は
   TIMESTAMP のデータ型を持ち、現在の日付とローカルの時刻を返します。
  </para>
  
  <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-3">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
    Notes
   </TITLE>

   <TITLE>
    注釈
   </TITLE>

   <para>
    Refer to the SET TIME ZONE statement for a further description
    of local time.
   </para>

   <para>
    ローカルの時刻に付いてさらに詳しくは SET TIME ZONE 文の説明を参照して
    ください。
   </para>
   
   
  </REFSECT2>
  
 <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-2">
  <TITLE>
   Usage
  </TITLE>

  <TITLE>
   使用法
  </TITLE>

  <para>
   Display CURRENT_TIMESTAMP:
  </para>

  <para>
   CURRENT_TIMESTAMPを表示します。
  </para>

<programlisting>
   SELECT CURRENT_TIMESTAMP AS date_and_time;

   date_and_time
   ----------------------
   1998-03-31 07:41:21-08
</programlisting>


 </REFSECT1>
 
 <REFSECT1 ID="R1-SQL-CURRENT-TIMESTAMP-3">
  <TITLE>
   Compatibility
  </TITLE>

  <TITLE>
   整合性
  </TITLE>

  <para>
  </para>
  
  <REFSECT2 ID="R2-SQL-CURRENT-TIMESTAMP-4">
   <REFSECT2INFO>
    <DATE>1998-04-15</DATE>
   </REFSECT2INFO>
   <TITLE>
    SQL92
   </TITLE>
   <para>
   SQL92 specifies some additional capabilities for CURRENT_TIMESTAMP:
   </para>

   <para>
   SQL92はCURRENT_TIMESTAMPの他の機能も利用します。 
   </para>
   
   <VARIABLELIST>
    <VARLISTENTRY>
     <TERM>
     </TERM>
     <LISTITEM>
      <para>
       <VARIABLELIST>
	<VARLISTENTRY>
	 <TERM>
	  <ReturnValue>CURRENT_TIMESTAMP [ (<replaceable class="parameter">scale</replaceable>) ]</ReturnValue>
	 </TERM>
	 <LISTITEM>
	  <para>
	   The optional scale for CURRENT_TIMESTAMP, if specified, is an
	   unsigned integer representing the number of digits in the
	   optional seconds fraction of the time value represented
	   by the function.
	  </para>

	  <para>
           CURRENT_TIMEの scale オプションが指定されると、この関数によって
           表現される時刻値のオプションである秒の部分の分数値を符号無しの
           整数で表現します。
	  </para>

	 </LISTITEM>
	</VARLISTENTRY>
       </VARIABLELIST>
      </para>
     </LISTITEM>
    </VARLISTENTRY>
   </VARIABLELIST>
  </refsect2>
 </refsect1>
</REFENTRY>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
