"I have a mind like a steel... uh... thingy." Patrick Logan's weblog.

Search This Blog

Loading...

Wednesday, June 30, 2004

Shades of Agenda

David Buck has open sourced (is that a verb?) a date parser in Smalltalk that could come in handy in an Agenda-like capability to cull dates out of free-form or semi-structured text.

  DateStringCompiler readFrom: 'today'
  DateStringCompiler readFrom: 'tomorrow'
  DateStringCompiler readFrom: 'yesterday'
  DateStringCompiler readFrom: 'last week'
  DateStringCompiler readFrom: 'next week'
  DateStringCompiler readFrom: 'friday'
  DateStringCompiler readFrom: 'next friday'
  DateStringCompiler readFrom: 'last friday'
  DateStringCompiler readFrom: 'Jan 3, 2004'
  DateStringCompiler readFrom: 'January 3, 2004'
  DateStringCompiler readFrom: '12/25/2005'

No comments:

Blog Archive

About Me

Portland, Oregon, United States
I'm usually writing from my favorite location on the planet, the pacific northwest of the u.s. I write for myself only and unless otherwise specified my posts here should not be taken as representing an official position of my employer. Contact me at my gee mail account, username patrickdlogan.