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 -> Re: OCCI - Timestamp

Re: OCCI - Timestamp

From: KM <KM_at_nospam.nospam.com>
Date: Tue, 29 Aug 2006 09:30:46 +0530
Message-ID: <QgPIg.50$ph4.223@news.oracle.com>

t wrote:
> 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.
>
>
>

When you say it does not work, what exactly happens? Do you get some error message? What error message do you see? Are you sure you are using VC++7.1?

-km Received on Mon Aug 28 2006 - 23:00:46 CDT

Original text of this message

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