Re: [darktable-devel] File date sort

2013-10-17 Thread jeremy rosen
hmm, i'll have to think about it from a lua point of view... i'll probably export it as second since 1970 so all normal lua numeric operations work... but if I can convert the date into any format, i'm good with that. On Thu, Oct 17, 2013 at 11:26 AM, David Vincent-Jones wrote: > That would be g

Re: [darktable-devel] File date sort

2013-10-17 Thread David Vincent-Jones
That would be great ... my folders all have date numerics at their fromt end and that is where I would most like to use it. David On 13-10-17 11:08 AM, johannes hanika wrote: > if i read the docs correctly, it would stay text but sqlite would know how > to deal with it. actually this query works

Re: [darktable-devel] File date sort

2013-10-17 Thread johannes hanika
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 mayb

Re: [darktable-devel] File date sort

2013-10-17 Thread jeremy rosen
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 wrote: > yeah, unfortunately we don't support that. but i agree it would be a great > feature. > > i should ha

Re: [darktable-devel] File date sort

2013-10-17 Thread johannes hanika
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, O

[darktable-devel] File date sort

2013-10-17 Thread David Vincent-Jones
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