home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / oracle / 2206 next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.5 KB

  1. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!stanford.edu!rutgers!rwja!holowczk
  2. From: holowczk@rwja.umdnj.edu (Richard Holowczak)
  3. Newsgroups: comp.databases.oracle
  4. Subject: How to use time in Oracle
  5. Summary: How to use time in Oracle
  6. Keywords: Oracle time
  7. Message-ID: <1684@rwja.umdnj.edu>
  8. Date: 15 Nov 92 17:40:34 GMT
  9. Distribution: comp
  10. Organization: Robert Wood Johnson Medical School, Piscataway NJ
  11. Lines: 30
  12.  
  13.  
  14. How do people use time in Oracle databases?  I am writing a manufacturing
  15. system which needs to know when things start and end and how long they will
  16. take to complete.  I have tried using the TIME component of the DATE
  17. datatype but this very clumsy to work with.  Other options might be to
  18. make several INTEGER fields and use them as HOURS and MINUTES.  This also
  19. has shortcommings.  Any advice out there?
  20.  
  21.  
  22. The operations I'd like to be able to do are the following:
  23.  
  24.     Data entry of the current time of day (10:45 pm) as well as
  25.     the time to complete a task (1 hour and 10 minutes).
  26.  
  27.     Time math such as Current time is 11:00 and task will take
  28.     1 hour and 30 mins. to complete so task should be done at
  29.     12:30.  Other time math might be: This task will take 30%
  30.     longer to complete.  How long is this in hours and minutes?
  31.     (i.e.  30% of 1 hour and 10 mins. = ?)
  32.  
  33.     Time comparisons such as A process is "Due" to complete at 
  34.     11:30.  It really completed at 11:35.  Is it late or early and
  35.       if so by how much?
  36.  
  37.  
  38. Thanks in advance
  39.  
  40. Rich Holowczak
  41. Rutgers University
  42. Industrial Engineering
  43.