Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 984

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>ibase_timefmt</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="InterBase functions"
HREF="ref.ibase.html"><LINK
REL="PREVIOUS"
TITLE="ibase_rollback"
HREF="function.ibase-rollback.html"><LINK
REL="NEXT"
TITLE="ibase_trans"
HREF="function.ibase-trans.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.ibase-rollback.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.ibase-trans.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.ibase-timefmt"
></A
>ibase_timefmt</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN40910"
></A
><P
>    (PHP 3&#62;= 3.0.6, PHP 4 )</P
>ibase_timefmt&nbsp;--&nbsp;
     Sets the format of timestamp, date and time type columns returned from queries
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN40913"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>ibase_timefmt</B
> ( string format [, int columntype])<BR
></BR
><P
>&#13;     Sets the format of timestamp, date or time type columns returned
     from queries. Internally, the columns are formatted by c-function
     strftime(), so refer to it's documentation regarding to the format
     of the string. <TT
CLASS="parameter"
><I
>columntype</I
></TT
> is one of the
     constants IBASE_TIMESTAMP, IBASE_DATE and IBASE_TIME. If omitted,
     defaults to IBASE_TIMESTAMP for backwards compatibility.
     <DIV
CLASS="informalexample"
><A
NAME="AEN40926"
></A
><P
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>&#60;?php
       // InterBase 6 TIME-type columns will be returned in
       // the form '05 hours 37 minutes'. 
       ibase_timefmt("%H hours %M minutes", IBASE_TIME);
       ?&#62;</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
>
    </P
><P
>&#13;     You can also set defaults for these formats with PHP configuration
     directives ibase.timestampformat, ibase.dateformat and ibase.timeformat.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
      <TT
CLASS="parameter"
><I
>columntype</I
></TT
> was added in PHP 4.0. It has any
      meaning only with InterBase version 6 and higher.
     </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
      A backwards incompatible change happened in PHP 4.0 when PHP
      configuration directive ibase.timeformat was renamed to
      ibase.timestampformat and directives ibase.dateformat and
      ibase.timeformat were added, so that the names would match better
      their functionality.
     </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.ibase-rollback.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.ibase-trans.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>ibase_rollback</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.ibase.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ibase_trans</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>