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