Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> OCCI - Timestamp

OCCI - Timestamp

From: t <rr_at_rr.pl>
Date: Fri, 25 Aug 2006 17:48:51 +0200
Message-ID: <ecn6av$oej$1@nemesis.news.tpi.pl>


Hi

I am trying to use OCI from Oracle XE

when using toText with precision to minutes and secunds program breaks

however when I am using only 'YYYY-MM-DD HH24' - format everything is OK

string date1;
Timestamp ts1;
ts1.fromText("2000-02-29 11:10:10", "YYYY-MM-DD HH24:MI:SS", "", env); // date1 = ts1.toText ("YYYY-MM-DD HH24:MI:SS", 0, ""); <---- dasn't work !!!!!
date1 = ts1.toText ("YYYY-MM-DD HH24", 0, "");

I am using VC++ .NET Oracle Expressedition OCI (Oracla C interface)

thanks for help

t. Received on Fri Aug 25 2006 - 10:48:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US