Yes. The source use a pointer to a delphi structure to represent the
timestamp. And, as I said before, this works normally since FB 1.5.

  TFBDate = integer;
  TFBTime = Cardinal;

  { FireBird TimeStamp record }
  TFBTS = packed record
    Date: TFBDate;
    Time: TFBTime;
  end;

  PFBTS = ^TFBTS;

function udf_Day(T: PFBTS): SmallInt; cdecl; export;
begin
  Result := FBDecDate(T^.Date).Day;
end;



Weverton Gomes de Morais
Tecnólogo em Redes de Comunicação
Arquiteto de Software
Desenvolvedor C# e Delphi
Entusiasta Ruby/Rails
"Todos juntos somos fortes"


2014-03-14 13:10 GMT-03:00 Dimitry Sibiryakov <[email protected]>:

> 14.03.2014 17:01, Weverton Gomes wrote:
> > It uses only simple structures to work with strings, numbers and dates.
>
>    Dates? Do you really work with ISC_TIMESTAMP without calling
> isc_decode_timestamp()???
>
> --
>    WBR, SD.
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to