A place to discuss Joel on Software. Now closed.
This community works best when people use their real names. Please register for a free account.
Joel on Software
Business of Software
Design of Software (CLOSED)
.NET Questions (CLOSED)
Fog Creek Copilot
The Old Forum
Albert D. Kallal
I've run across many applications which can parse strings of the format "+1d" which would mean "one day from now". (Fisheye and JIRA both do this--albeit in slightly different formats.)
I've never found a library that implements this. Is everyone writing their own from scratch? Any ideas?
(I've looked at Joda which has a PeriodParser, but I'm not sure that's exactly what I want.)
Do your own homework!
Man kids today.
We made it through our Freshman year CS courses and you can also.
Friday, June 13, 2008
The grammar is really simple (operator, duration, time unit) so you could write an LR parser in a few minutes, or just hack together a few loops to update the date as you scan across.
Saturday, June 14, 2008
This topic is archived. No further replies will be accepted.Other recent topics
Powered by FogBugz