<div dir="ltr"><div>That seems like a sensible suggestion  - it's how OHMs custom osm2pgsql script works - via a Lua script which converts the text strings start_date to a date field and creates another field to convert that into an integer - start_date_int. The map queries use the integer version, they could  use the date type as date ranges do work natively within many databases but it depends on the implementation - Postgres for example limits the earliest possible Date to 4713 BC which is 0 in the Julian calendar, which may exclude some more ancient things in OHM. <br><br></div><div>Cheers,<br><br></div><div>Tim<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 May 2015 at 18:06, Richard Welty <span dir="ltr"><<a href="mailto:rwelty@averillpark.net" target="_blank">rwelty@averillpark.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">it turns out that there is a proposal for broader<br>
numerical comparison operators and the author of the<br>
proposal is open to including time as something that<br>
can be compared. i've suggested starting off simple,<br>
allowing comparison of tags for which the value is a<br>
simple ISO format date, such as start_date and end_date.<br>
the dates would be parsed and normalized into an integer<br>
value for comparison. the baseline for the date->integer<br>
mapping is open for discussion but as it's a purely internal<br>
value, it can be changed if it needs to be.<br>
<br>
this seems like a way to get a useful capability quickly.<br>
<span class="HOEnZb"><font color="#888888"><br>
richard<br>
<br>
--<br>
<a href="mailto:rwelty@averillpark.net">rwelty@averillpark.net</a><br>
 Averill Park Networking - GIS & IT Consulting<br>
 OpenStreetMap - PostgreSQL - Linux<br>
 Java - Web Applications - Search<br>
<br>
<br>
</font></span><br>_______________________________________________<br>
Historic mailing list<br>
<a href="mailto:Historic@openstreetmap.org">Historic@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/historic" target="_blank">https://lists.openstreetmap.org/listinfo/historic</a><br>
<br></blockquote></div><br></div>