The Joel on Software Discussion Group (CLOSED)

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.

Other Groups:
Joel on Software
Business of Software
Design of Software (CLOSED)
.NET Questions (CLOSED)
TechInterview.org
CityDesk
FogBugz
Fog Creek Copilot


The Old Forum


Your hosts:
Albert D. Kallal
Li-Fan Chen
Stephen Jones

Know of a relative date parser in Java?

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.)
Tom Send private email
Friday, June 13, 2008
 
 
Do your own homework!

Man kids today.

We made it through our Freshman year CS courses and you can also.
V
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.
Benjamin Manes Send private email
Saturday, June 14, 2008
 
 
Do your homework??? Who uses JIRA and Fisheye in school?

I'm sure I could right it myself, but I'd prefer not to and I was hoping to find a library not so much for the code itself, but for the somewhat standardized syntax.
Tom Send private email
Tuesday, June 17, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz