[Xesam] Relative date queries / Mono XESAM library

Jamie McCracken jamie.mccrack at googlemail.com
Tue Jan 15 08:13:02 PST 2008


On Tue, 2008-01-15 at 10:02 -0600, Gabriel Burt wrote:
> On Jan 15, 2008 2:10 AM, Evgeny Egorochkin <phreedom.stdin at gmail.com> wrote:
> > В сообщении от Tuesday 15 January 2008 06:51:33 Gabriel Burt написал(а):
> > > What do you think of an optional 'relative' attribute on the date
> > > value specifying the seconds to add to the date, and allowing 'now' as
> > > a valid date?
> > >
> > > <lessThan>
> > >   <field name="lastplayed" />
> > >   <date relative="-7200">now</date>
> > > </lessThan>
> >
> > I can very well understand why user-level language needs constructs like this,
> > but for internal api, probably this would needlessly complicate the spec.
> > Somehow this resembles alowing Pi to be a valid value for a float field.
> 
> Except 'now' is a constantly changing value, making it much more
> suitable to represent as a special variable , and impossible to
> represent otherwise.
> 

we should probably include a "now"  for saved searches as it would be
impossible to do stuff relative to the current datetime without it

jamie



More information about the Xesam mailing list