home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!yikes
- From: yikes@netcom.com (Jenny Doll)
- Subject: Re: DBKit API questions
- Message-ID: <+alnfk#.yikes@netcom.com>
- Date: Thu, 03 Sep 92 05:55:36 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <4851@rosie.NeXT.COM> <4863@rosie.NeXT.COM>
- Keywords: DBKit, MiniExamples
- Lines: 20
-
- Help DBKit Gods!
-
- I have a field in a Sybase database that is a long int representing date&time
- (result of time() function). Assuming I have an object or C functions that can
- convert between this format and human-readable date and time formats, how can I:
-
- (1) Create a DBTable view that will either:
- (A) Display & edit both the date and time in separate columns, or else
- if I can't split 1 Sybase field into 2 DBKit attributes, then I'd
- settle for:
- (B) Display & edit the date portion of the field
-
- (2) Use 1 or 2 form objects to edit the human readable date and time
-
- Obviously the data format needs to be converted from a longint to strings when
- retrieving data from the database and back to a longint when putting the data
- back.
-
-
- Thanks, ...Michael Brill
-