[Xesam] Relative date queries / Mono XESAM library

Gabriel Burt gabriel.burt at gmail.com
Tue Jan 15 08:02:38 PST 2008


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.

Gabriel


More information about the Xesam mailing list