Jeff White wrote:
> There's no way to specify the current datetime in the string 
> representation of an Interval, is there? For example, if I want two days 
> leading up to now:
> 
> new Interval("P2D/now");
> 
> I have a single command-line argument for specifying a date range, and 
> specifying dates relative to current date would be convenient instead of 
> back-ticking the date command.

No, we don't support this, mainly because its not part of ISO8601.

I can see its use though. The problem is that it is not necessarily 
clear. What if you want two days before 'today' instead of 'now'. Is 
that a different constant? Or two days before the nearest hour?

Sadly, there are many concepts that ISO8601 doesn't support.

Stephen



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to