02-03-2021, 08:55 AM | #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? |
02-03-2021, 08:56 AM | #2 |
creator of calibre
Posts: 44,019
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can control what is shown in the UI via Preferences->Tweaks
|
Advert | |
|
02-03-2021, 09:37 AM | #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". |
02-03-2021, 09:43 AM | #4 |
creator of calibre
Posts: 44,019
Karma: 22669822
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.
|
02-03-2021, 02:54 PM | #5 | |
Custom User Title
Posts: 8,841
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
Advert | |
|
02-04-2021, 12:20 AM | #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. |
|
02-04-2021, 12:32 AM | #7 |
Custom User Title
Posts: 8,841
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
02-04-2021, 12:40 AM | #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... |
02-04-2021, 03:49 AM | #9 | |
null operator (he/him)
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Here you will find my solution ==>> Imprecise Dates BR |
|
02-04-2021, 07:18 AM | #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? |
02-04-2021, 07:54 PM | #11 | |
null operator (he/him)
Posts: 20,683
Karma: 26966376
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": {}}"/> |
|
02-04-2021, 08:25 PM | #12 |
Custom User Title
Posts: 8,841
Karma: 62032373
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.
|
02-04-2021, 08:47 PM | #13 | |
Groupie
Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
|
Quote:
Makes sense. Thanks! |
|
Tags |
opf file, published date |
|
Similar Threads | ||||
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 |