Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2025, 01:39 PM   #1
whitespirit
Member
whitespirit began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2009
Device: pocketbook PB741
How to get book file date into a column in calibre

Hi - I use calibre to manage my comics cbz-files which are sometimes updated. Everytime however if I add a colum or add a tag I get a new modification date without the file itslef has changed. I'm looking now to have the file (creation) date (as shown in windows explorer) into calibre a user defined date type column, but it seems very hard to use chatgpt as a platform to write a usable plugin that does so. Is there anyone capable of telling me what to do to get this work ? thanks
whitespirit is offline   Reply With Quote
Old 09-04-2025, 02:13 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,153
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Not quite what you asked for...
If you hover over the format in the MDE, it will balloon the date.
theducks is offline   Reply With Quote
Advert
Old 09-04-2025, 02:25 PM   #3
whitespirit
Member
whitespirit began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2009
Device: pocketbook PB741
Quote:
Originally Posted by theducks View Post
Not quite what you asked for...
If you hover over the format in the MDE, it will balloon the date.
Yes that's the date I want to have in the database as column so I can use it my catalog. I do not have a clue how to get it in there eg in custom column #cdate
whitespirit is offline   Reply With Quote
Old 09-04-2025, 02:58 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,489
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Create a custom column 'Built from other columns' (a 'composite' column). Use the following as the template:
Code:
program:
	select(formats_modtimes('iso'), 'CBZ')
It could be that using a composite column will be too slow, given that it needs to read the disk for each book to get the modtime. You don't say how you use this data. If having it in book details is sufficient then hide the column in the book list, which will dramatically improve performace.

You can also use the Action Chains plugin to set the value of a date custom column to the result of the template on demand or when certain events occur. If you want to do this and need help then ask in the plugin's thread.

EDIT: you can also do it in bulk metadata search & replace using the above template as the source and the date custom column as the destination.

EDIT2: You can of course format the date using different format strings, for example
Code:
program:
	select(formats_modtimes('yyyy-MM-dd hh:mm:ss'), 'CBZ')

Last edited by chaley; 09-04-2025 at 03:14 PM.
chaley is offline   Reply With Quote
Old 09-04-2025, 02:59 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,153
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by whitespirit View Post
Yes that's the date I want to have in the database as column so I can use it my catalog. I do not have a clue how to get it in there eg in custom column #cdate
Neither do I.
Be aware, that a few actions will change those files (date)
1)Embed metadata. 2) Polish 3) a same format conversion (commonly used to fix poorly coded files.
theducks is offline   Reply With Quote
Advert
Old 09-04-2025, 03:38 PM   #6
whitespirit
Member
whitespirit began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jan 2009
Device: pocketbook PB741
Quote:
Originally Posted by chaley View Post
Create a custom column 'Built from other columns' (a 'composite' column). Use the following as the template:
Code:
program:
	select(formats_modtimes('iso'), 'CBZ')
It could be that using a composite column will be too slow, given that it needs to read the disk for each book to get the modtime. You don't say how you use this data. If having it in book details is sufficient then hide the column in the book list, which will dramatically improve performace.

You can also use the Action Chains plugin to set the value of a date custom column to the result of the template on demand or when certain events occur. If you want to do this and need help then ask in the plugin's thread.

EDIT: you can also do it in bulk metadata search & replace using the above template as the source and the date custom column as the destination.

EDIT2: You can of course format the date using different format strings, for example
Code:
program:
	select(formats_modtimes('yyyy-MM-dd hh:mm:ss'), 'CBZ')
Thanks a lot - that's excatly what I needed in a very simple way !
whitespirit is offline   Reply With Quote
Reply

Tags
calibre, file creation date


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Column for date book is added to the library? idiom6 Calibre 5 06-13-2025 11:57 PM
Change "Date Added" metadata on Kobo to match the "Date" column in Calibre? slantybard Kobo Reader 2 05-01-2024 09:39 PM
Column to show file date Bigo2 Library Management 2 12-28-2016 03:12 AM
Problem copying a date column to other date column Terisa de morgan Library Management 13 05-01-2016 03:27 AM
Date Added column? Can I set date when book added to library? fitzhugh Calibre 4 06-03-2012 05:42 PM


All times are GMT -4. The time now is 08:09 AM.


MobileRead.com is a privately owned, operated and funded community.