Home > PHP > Function > Firebird/InterBase > ibase_timefmt()

ibase_timefmt()

ibase_timefmt - Sets the format of timestamp, date and time type columns returned from queries

Syntax

bool ibase_timefmt (string $format, int $columntype)

Arguments

  • format - Internally, the columns are formatted by c-function strftime(), so refer to its documentation regarding to the format of the string.
  • columntype - columntype is one of the constants IBASE_TIMESTAMP, IBASE_DATE and IBASE_TIME. If omitted, defaults to IBASE_TIMESTAMP for backwards compatibility.

Description

Sets the format of timestamp, date or time type columns returned from queries.

Version

PHP 4

Return value

Returns TRUE on success or FALSE on failure.