if i read the docs correctly, it would stay text but sqlite would know how
to deal with it. actually this query works:

select datetime_taken from images where datetime(datetime_taken) >
datetime("2013-10-10 00:00:00");

so that should probably also work in the collection module input box, but
maybe that^ means we can have a relatively simple code change to support >
operators on dates.

j.


On Thu, Oct 17, 2013 at 9:46 PM, jeremy rosen <jeremy.ro...@enst-bretagne.fr
> wrote:

> I'd love that for lua too... currently date in lua is accessed as text,
> which is less than handy for comparison and stuff like that...
>
>
> On Thu, Oct 17, 2013 at 10:40 AM, johannes hanika <hana...@gmail.com>wrote:
>
>> yeah, unfortunately we don't support that. but i agree it would be a
>> great feature.
>>
>> i should have made the datetime field a date type instead of char[40] (
>> https://www.sqlite.org/lang_datefunc.html), then you could now use < and
>> > .. :/
>>
>> potentially easy to update, need to check.
>>
>> -jo
>>
>>
>>
>> On Thu, Oct 17, 2013 at 9:27 PM, David Vincent-Jones <
>> davi...@frontier.com> wrote:
>>
>>> A question that I asked earlier and that was not answered:
>>>
>>> Is there a way to use '>' or '<' in a collect-images sort of time,
>>> file-names, folders etc ?
>>>
>>> David
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>>> from
>>> the latest Intel processors and coprocessors. See abstracts and register
>>> >
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> darktable-devel mailing list
>>> darktable-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and register >
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> darktable-devel mailing list
>> darktable-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>>
>>
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to