![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
|
Published date with day (and time) or only with month
In the calibre UI the Published date is shown with month and year; however when I look in the exported OPF file I can see in the dc:date field a full datetime string with day and time information.
What is correct? Is the Ui just hiding the day/time details or is there more to it? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can control what is shown in the UI via Preferences->Tweaks
|
![]() |
![]() |
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
|
Thanks, Kovid.
But how does it work the other way around: Say only the Month and Year a book was published are kown, how can I record this in the UI? OPf does allow date entries just as "yyyy-mm". |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just enter it, default values will be sused for the rest just as i done in OPF, though you dont see it.
|
![]() |
![]() |
![]() |
#5 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,599
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
|
Quote:
Very often day and time of the published field are unkown, but setting this information to valid default values doesn't seem right to me, because then there is no way to tell the difference between a fully known 1 Jan 2020 as published date and just 2020 as the published date. |
|
![]() |
![]() |
![]() |
#7 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,599
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
#8 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
|
Thanks for the reply.
I'd say this is a shame: The OPF specification certainly allows for this (by having short date strings like "2020-01"). Anyway, I guess, it is what it is... |
![]() |
![]() |
![]() |
#9 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,607
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Here you will find my solution ==>> Imprecise Dates BR |
|
![]() |
![]() |
![]() |
#10 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
|
@BetterRead Thanks for the tip! Interesting!
So this means the published field is a custom column, right? Can I export them in the OPF file? |
![]() |
![]() |
![]() |
#11 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,607
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
And here you see the result: It suits me because I always use ISO (military) dates (and a 24 hour clock). Might not suit those who prefer other representations - e.g MMM.dd.yy. This is what's written to the book folder\metadata.opf file and the content.opf file in the .epub file Code:
<meta name="calibre:user_metadata:#part_date" content="{"table": "custom_column_61", "column": "value", "datatype": "text", "is_multiple": null, "kind": "field", "name": "Partial Date", "search_terms": ["#part_date"], "label": "part_date", "colnum": 61, "display": {"use_decorations": 0, "description": ""}, "is_custom": true, "is_category": true, "link_column": "value", "category_sort": "value", "is_csp": false, "is_editable": true, "rec_index": 58, "#value#": "2008.05", "#extra#": null, "is_multiple2": {}}"/> |
|
![]() |
![]() |
![]() |
#12 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,599
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm getting a chuckle reading all the text in that third image.
|
![]() |
![]() |
![]() |
#13 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
|
Quote:
Makes sense. Thanks! |
|
![]() |
![]() |
![]() |
Tags |
opf file, published date |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to replace date with the published date | MegAnne | Calibre | 6 | 02-25-2019 01:47 AM |
Willa Cather's letters to be published next month | astrangerhere | Reading Recommendations | 1 | 03-26-2013 12:02 AM |
Remove Month In Published Column (Edit Meta Info) | JayLaFunk | Library Management | 12 | 09-24-2011 10:29 AM |
'Published date' and 'originally published date' | Arrghus | Calibre | 2 | 07-29-2011 12:43 AM |
Bulk Changing Published Date To Date | hmf | Calibre | 4 | 10-19-2010 10:19 PM |