-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datetime: encapsulates datetime operations and add milliseconds #10844
Conversation
02038d0
to
44b6a4b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A first review. TIA.
44b6a4b
to
962055a
Compare
I could continue the next steps on the same PR, but as datetime usage is a bit spread over the code I would prefer to avoid too many rebases. |
962055a
to
d5d1540
Compare
f0e7e45
to
f3bd6dd
Compare
f3bd6dd
to
2fa6c53
Compare
Once done we can tweak datetime accuracy as needed. First step to fix darktable-org#10398
- rework datetime.c - no change on bd because sqlite disregards text size
2fa6c53
to
91a6f20
Compare
- works for export but not yet for import
c052a78
to
d853538
Compare
+ if override date format invalid cancels importation
95598b3
to
065e55e
Compare
IMO yes
IMO Yes. I agree that "single item collections" are not useful
Ideally yes. Given that 2038 is "soon" and GNU Libc needs explicit param to enable 64bit time support, moving to glib time handling seems like a good idea overall. But maybe not in the scope of this PR. A lot of such occurences means a lot of rebases to do if pr is long-lived which may cause problems in the long run... So maybe separate PR after this gets merged and in several PRs to get changes in quickly and without need for lots of rebases :) |
Maybe only on a tooltip? |
I've added a preference to show or not the milliseconds in "image information", but I'm wondering if it won't be better as global preference to control "geotagging" as well. EDIT: now controls |
and revert 2c9226f (preference on metadata_view)
adf27d6
to
cc2c082
Compare
Details...
|
ad802e0
to
701a85c
Compare
the requirement for 2.56 comes from the fact that minimum supported ubuntu for 3.8 release was set to be 18.04 LTS. since that'll be over 4 y old by the time of 4.0 release I'd recommend switching minimum glib to 20.04 LTS which has glib 2.64 That way we'd also be able to drop need to support older compillers :) |
688891b
to
759b1df
Compare
it's awesome to have milliseconds as import-variable, thanks a lot! Is there a chance to use |
Not sure to understand the question. |
I would like to have unique filenames using date+time. In order to have short and readable filenames (in most cases) it would be great if millilseconds are only added to the filename if otherwise it would not be unique. So using a variable $(EXIF_MSEC_IF_NOT_UNIQUE) would look like this: |
Got it ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a better wording?
Apart from that it is all good to me.
759b1df
to
40a7bb0
Compare
Sorry Philippe but you have also some conflicts here! |
@phweyland : The conflict was easy to resolved, I've done so and merged this. Thanks again! |
Once done we can tweak datetime accuracy as needed.
First step to fix #10398