From: Jeff W. <js...@fa...> - 2006-07-28 20:12:27
|
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. jeff |