I'm experimenting with date range computed buckets.
My range index is xs:dateTime and I want to define "today" , "last 15 minute"
, "yesterday"
I got this to sorta work ...
<constraint name="date">
<range type="xs:dateTime">
<element ns="http://www.epocrates.com/schemas/logs"
name="log"/>
<attribute ns="" name="time"/>
<computed-bucket name="today" ge="P0D" lt="P1D"
anchor="start-of-day">Today</computed-bucket>
<computed-bucket name="yesterday" ge="-P1D" lt="P0D"
anchor="start-of-day">yesterday</computed-bucket>
<computed-bucket name="15min" ge="-PT15M" lt="PT0M"
anchor="now">Last 15 minutes</computed-bucket>
</range>
</constraint>
The problem is the meaning of "start-of-day" seems to be GMT not my local
timezone.
Is there a way to force the meaning of 'anchor="start-of-day"' to mean
start of day in a specific timezone ?
Thanks for any hints
-David
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected]<mailto:[email protected]>
812-482-5224
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general