get date and time from cursor
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Nov 19 17:34:37 CST 2003
on 11/19/03 4:41 PM, Arthur Clemens at aclemens at xs4all.nl wrote:
Hi Arthur,
>>> I've seen there is a VDK_DateTime. Is there a way to get date AND time
>>> from a cursor after a sqlSelect?
>>
>> Yes of course.
>>
>>> A function like GetDateTime( ushort inIndex, long& outYear, ushort&
>>> outMonth, ushort& outDay, ushort& outHour, ushort& outMinute, ushort&
>>> outSecond) would be nice.
>>
>>> Also support for milliseconds would be welcome for me.
>>
>> You need at first obtain VDK_DateField from cursor
>>
>> pDateTimefld = curs->Get_DateTimeField( "name" );
>>
>> Now you can ask GetDateTime() from field
>
> I can't find the method GetDateTime(). Do you mean I should ask
> pDateTimefId.GetDate() and pDateTimefId.GetTime() ?
Aha, I see what you mean.
There is no single method.
Then you should call 2 methods.
Is this problem?
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list