home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7668 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.5 KB  |  42 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!cs.utexas.edu!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: Converting ctime format into an integer ??
  5. Originator: tchrist@pixel.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1993Jan4.233738.24706@news.eng.convex.com>
  8. Date: Mon, 4 Jan 1993 23:37:38 GMT
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. References: <6649@pdxgate.UUCP>
  11. Nntp-Posting-Host: pixel.convex.com
  12. Organization: Convex Computer Corporation, Colorado Springs, CO
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 24
  17.  
  18. From the keyboard of mikewe@rigel.cs.pdx.edu (Michael C welsh):
  19. :I am trying to convert the actual ctime format:
  20. :
  21. :    Sun Jan  3 14:17:18 PST 1993
  22. :
  23. :into an integer for comparison.....
  24. :
  25. :Does anyone know if there is anything laying around..or a really
  26. :good and (gulp) easy way to do this ?????
  27.  
  28. Routines don't lay -- only people and chickens do.  Routines lie.
  29. I guess if they had a promiscuous mode it might make a difference.
  30.  
  31. Anyway, FAQ 2.24 addresses this question.  You can get it from
  32. convex.com in /pub/perl/info/faq if it's not on your system, 
  33. and yes, I'll be putting out an update this week.
  34.  
  35. --tom
  36.  
  37. -- 
  38.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  39.  
  40.     pos += screamnext[pos]  /* does this goof up anywhere? */
  41.         --Larry Wall in util.c from the perl source code
  42.