home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16451 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!montebello.ecom.unimelb.EDU.AU!carl
  3. From: carl@montebello.ecom.unimelb.EDU.AU (Carl Brewer)
  4. Subject: Re:    using variables of type date in UNIX
  5. Message-ID: <9231821.23606@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Dept. Engineering Computer Resources, Melbourne Uni.
  8. References: <92314.235928U17868@uicvm.uic.edu>
  9. Date: Fri, 13 Nov 1992 10:23:52 GMT
  10. Lines: 21
  11.  
  12. In article <92314.235928U17868@uicvm.uic.edu> <U17868@uicvm.uic.edu> writes:
  13. >I want to know how I can use the variable of type date in C. For example, how c
  14. >ould I define a varaible like
  15. >"todays_date" to be of type date and then read the input in the format like
  16. >                       11/09/92
  17. > I would be using ANSI C on UNIX. Is there any biult in function in C library t
  18. >hat would allow me to declare a variable of type date . If the type date is a U
  19. >NIX system command, how can I use it in my C program. Could I use it by definin
  20. >g enumerated data type. If so, how?
  21.  
  22. #include <time.h>
  23.  
  24. suggest you read a manual ...
  25.  
  26.  
  27.  
  28. -- 
  29.  Annal  Natrach, Usthvah Spethed,         carl@ecr.mu.oz.au (IRC: Bleve)
  30.  Dochoel Dienve                           carl@munagin.ee.mu.oz.au
  31.                       carl@montebello.ecom.unimelb.EDU.AU
  32.  Merlin, where are you?  Call your dragon, to weave a mist...
  33.