В сообщении от Tuesday 15 January 2008 18:13:02 Jamie McCracken написал(а): > On Tue, 2008-01-15 at 10:02 -0600, Gabriel Burt wrote: > > On Jan 15, 2008 2:10 AM, Evgeny Egorochkin <[EMAIL PROTECTED]> 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
Sounds sane. Better implement it once in Xesam backend than in all client apps. -- Evgeny _______________________________________________ Xesam mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xesam
