Offsets of parsed date text?

0 views
Skip to first unread message

felciano

unread,
Oct 18, 2008, 1:26:58 PM10/18/08
to parsedatetime-dev
Hi --

This is a great library! I love the fact that parsedatetime can pull a
date from the following:

d = PDT_CALENDAR.parse("flight from SFO Friday at 4pm on United")

I've been using it for almost a year and it is great -- works in
pretty much any configuration. Thank you for making in available!

After a succesful date parse, I'd like to simplify / shorten the above
string to:

"flight from SFO on United"

Is that doable using datetimeparse? For example, is there a way to get
the character offsets that were identified for the datetime portion?

Thanks again for a great library.

Ramon

bear

unread,
Oct 19, 2008, 11:02:04 PM10/19/08
to parsedat...@googlegroups.com
Right now there isn't a way to pull out the text that was matched for
a date. It has been something I've been wanting to do - create a text
graph of matched/unmatched text and the date items pulled.

Thanks for using the library and I'm glad you have found it helpful.

--
---
Bear

be...@seesmic.com (work)
be...@code-bear.com (jabber & email)
http://code-bear.com/bearlog (weblog)

PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29

Reply all
Reply to author
Forward
0 new messages