home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / tcl / 2269 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.1 KB  |  53 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!s5!is1.is.morgan.com!is0!chetal
  3. From: chetal@is.morgan.com (Pradeep Chetal)
  4. Subject: Re: tcl function for dates
  5. In-Reply-To: karl@NeoSoft.com's message of Thu, 24 Dec 1992 02:10:33 GMT
  6. Message-ID: <CHETAL.92Dec29133834@poundcake.is.morgan.com>
  7. Sender: news@is.morgan.com
  8. Nntp-Posting-Host: poundcake
  9. Organization: Information Services, Morgan Stanley, NYC
  10. References: <1h7qe1INNck1@gazette.bcm.tmc.edu> <BzqrDM.Iqr@NeoSoft.com>
  11. Date: Tue, 29 Dec 1992 04:38:34 GMT
  12. Lines: 39
  13.  
  14.  
  15. In article <BzqrDM.Iqr@NeoSoft.com> karl@NeoSoft.com (Karl Lehenbauer) writes:
  16.    In article <1h7qe1INNck1@gazette.bcm.tmc.edu> prabhag@nicolle.iaims.bcm.tmc.edu (Prabha Ganapathy) writes:
  17.    >I'm looking for a function for manuplating dates, similar to one available on
  18.    >relational databases as Sybase. Is someone has written a similar function, or knows
  19.    >where I can find the code, please send me e-mail.
  20.  
  21.    "convertclock", one of my favorites, interfaces to the getdate.y grammar
  22.    ``everybody'' uses to parse the myriad date formats generated by all the
  23.    various news and mail clients.  It takes a date and/or time string and
  24.    returns the equivalent since-1970 integer time.
  25.  
  26. This is great and I use it a lot. However, one of the cases where it fails
  27. is on one of the examples itself.
  28.  
  29. wish: help time/convertclock
  30.  
  31.           convertclock dateString [GMT|{}] [baseClock]
  32.  
  33.                    convertclock "14 Feb 92"
  34.                    convertclock "Feb 14, 1992 12:20 PM PST"
  35.                    convertclock "12:20 PM, Feb 14, 1992"
  36.  
  37. wish: convertclock "12:20 PM, Feb 14, 1992"
  38. Unable to convert date-time string "12:20 PM, Feb 14, 1992"
  39.  
  40.  
  41. I just picked up the last example in help section & it fails!
  42.  
  43. - Pradeep
  44. --
  45. ----------------------------------------------------------------------------
  46. Pradeep Chetal        UUCP:    ...!uunet!is.morgan.com!chetal
  47. Morgan Stanley        Internet:     chetal@is.morgan.com
  48. 1633 Broadway,        Phone:        (212) 703-2220 (O)
  49. NY, NY 10019                (212) 703-2371 (FAX)
  50.             _______________    __o
  51.         _________________     -\<,
  52.                         ......O/ O
  53.