home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5934 < prev    next >
Encoding:
Text File  |  1992-09-14  |  783 b   |  26 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!ftpbox!motsrd!white!rtsg.mot.com!marmaduke15!protofan
  3. From: protofan@marmaduke15.rtsg.mot.com (Mike S. Protofanousis)
  4. Subject: function to compute difference in time
  5. Message-ID: <1992Sep14.194732.29855@rtsg.mot.com>
  6. Sender: news@rtsg.mot.com
  7. Nntp-Posting-Host: marmaduke15
  8. Organization: Motorola Inc., Cellular Infrastructure Group
  9. Distribution: comp
  10. Date: Mon, 14 Sep 1992 19:47:32 GMT
  11. Lines: 13
  12.  
  13. Does anyone have perl code to compute the differce between two `date` commands.
  14.  
  15.   Mon Sep 14 14:47:44 1992
  16. - Mon Sep 14 14:46:54 1992
  17. ==========================
  18.                    50 seconds
  19.  
  20. I need to know the difference in days/hours/minutes/seconds.
  21.  
  22. Thanks.
  23. -- 
  24. Mike Protofanousis
  25. protofan@rtsg.mot.com     phone: 708 632-6779 (work)
  26.