home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5947 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!decwrl!csus.edu!netcom.com!yikes
  3. From: yikes@netcom.com (Jenny Doll)
  4. Subject: Re: DBKit API questions
  5. Message-ID: <+alnfk#.yikes@netcom.com>
  6. Date: Thu, 03 Sep 92 05:55:36 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <4851@rosie.NeXT.COM> <4863@rosie.NeXT.COM>
  9. Keywords: DBKit, MiniExamples
  10. Lines: 20
  11.  
  12. Help DBKit Gods!
  13.  
  14. I have a field in a Sybase database that is a long int representing date&time
  15. (result of time() function).  Assuming I have an object or C functions that can
  16. convert between this format and human-readable date and time formats, how can I:
  17.  
  18. (1) Create a DBTable view that will either:
  19.   (A) Display & edit both the date and time in separate columns, or else 
  20.       if I can't split 1 Sybase field into 2 DBKit attributes, then I'd 
  21.       settle for:
  22.   (B) Display & edit the date portion of the field
  23.  
  24. (2) Use 1 or 2 form objects to edit the human readable date and time
  25.  
  26. Obviously the data format needs to be converted from a longint to strings when
  27. retrieving data from the database and back to a longint when putting the data
  28. back.
  29.  
  30.  
  31. Thanks, ...Michael Brill
  32.