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 04-25-2014, 02:28 PM   #1
lalala987
Junior Member
lalala987 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2012
Device: sony tr1
Display date of file in library

dear all

i use to sort my library by the column "date". it seems as if that's the date when the metadata of the book was last changed. that allows me to display the newest added book on the top/bottom of the grid.

For some reason that data hast changed. all my books do have the same date now! I have checked the files on my harddrive, the file date is correct, displaying the date the file was created. but that's not the case in calibre's library anymore!

Question: is there a way to order the books in the library by the date the file was created/edited on the harddrive?

regards
lalala987 is offline   Reply With Quote
Old 04-25-2014, 03:08 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: 29,809
Karma: 54830978
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 lalala987 View Post
dear all

i use to sort my library by the column "date". it seems as if that's the date when the metadata of the book was last changed. that allows me to display the newest added book on the top/bottom of the grid.

For some reason that data hast changed. all my books do have the same date now! I have checked the files on my harddrive, the file date is correct, displaying the date the file was created. but that's not the case in calibre's library anymore!

Question: is there a way to order the books in the library by the date the file was created/edited on the harddrive?

regards
last_modified is the Timestamp of the Metadata change, not File

It can be triggered by anything that affects anything that shows in the Tag Browser (and a few others). (Not reliable for real changes)

Date is the date the RECORD was created (if you don't mess with that)

Published, well, that should be obvious

There is no database of the File date. You can hover over the format in the Metadata edit window and see the formats timestamp
theducks is offline   Reply With Quote
Advert
Old 04-25-2014, 04:01 PM   #3
lalala987
Junior Member
lalala987 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2012
Device: sony tr1
In the metadata dialoge there is a field named "date" which seems to contain the file date. did i understand you correctly that it is not possible to add a custom column with the file date?
lalala987 is offline   Reply With Quote
Old 04-25-2014, 05:38 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by lalala987 View Post
In the metadata dialoge there is a field named "date" which seems to contain the file date. did i understand you correctly that it is not possible to add a custom column with the file date?
@lalala987 - long story short - calibre's Date and Modified columns have nothing to do with the file system's Date Created and Date Modified properties, the fact that they are similar when you first add a book is coincidental.

There is no feasible way show the file system dates within calibre itself (except via mouse hovering in a secondary window). A 'book' folder usually has several files: a cover.jpg, the metadata.opf file and one or more format files; all of which can have different values in their Date Created and Date Modified file system properties. So then the question becomes for which one of those should the file system dates be shown as columns for a given book...

The bottom line is - if you want to see the file system dates for a book press 'O' and examine what the file system manager reports them as being.

BR
BetterRed is offline   Reply With Quote
Old 04-26-2014, 03:48 AM   #5
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
If by "date of file" you mean the date of the book file(s) in the library then you can see them using a custom column "built from other columns". The template is
Code:
program: formats_modtimes('yyyy-MM-dd')
You can change the format of the displayed date to whatever you want. For example
Code:
program: formats_modtimes('yyyy-MM-dd hh:mm:ss')
shows the time using a 24-hour clock, resulting in a column that contains
Code:
MOBI:2013-10-25 09:06:35,EPUB:2013-10-12 18:25:52,PRC:2012-02-12 10:02:28
if the book has all of .mobi, .epub, and .prc formats.

Be aware that this kind of column can slow down calibre's GUI because the gui must look up the modtime of every book format. Experience indicates that this usually isn't a problem with under 1000 books. YMMV.
chaley is offline   Reply With Quote
Advert
Old 04-26-2014, 05:53 AM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@chaley - were the formats_modtimes/paths/sizes functions recently added, I can recall other posts asking for some way to get the sizes and file system dates.

Quote:
Originally Posted by chaley View Post
Be aware that this kind of column can slow down calibre's GUI because the gui must look up the modtime of every book format.
If I only display the custom column (s) in the Book Information panel (keyboard 'I') does that mean the file system look ups are only done if I press 'I'.

BR
BetterRed is offline   Reply With Quote
Old 04-26-2014, 07:31 AM   #7
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
@chaley - were the formats_modtimes/paths/sizes functions recently added, I can recall other posts asking for some way to get the sizes and file system dates.
Nope. These have been there for a long time, since 30/June/2011 if I read the change logs correctly.
Quote:
If I only display the custom column (s) in the Book Information panel (keyboard 'I') does that mean the file system look ups are only done if I press 'I'.

BR
That is hard for me to answer definitively because the caching system has changed so much with the new DB. In the old DB, evaluating any composite caused all composites to be evaluated. However, reading the new DB code it appears a given composite is evaluated on demand, which means that you pay the penalty when you see the value. Furthermore, the value is cached so that you pay the penalty only once per full spreadsheet repaint. Note though that "seeing the value" also happens when sorting by that composite or if the composite is used as a field in another composite.
chaley is offline   Reply With Quote
Old 04-26-2014, 05:56 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@chaley - thanks, yes, the new backend did speed up composite columns, I was able to reinstate one that I had previously removed because it was having an adverse effect on performance - so far so good.

I think I know why I missed the formats_xxx() functions, would have searched the manual for 'file' within 3 words of 'date' and 'size'.

The three formats_xxx functions work fine in Book Information as I envisaged. Would be good if one could optionally specify a format eg formats_size('EPUB'), formats_modtimes('MM/dd/yyyy', 'AZW3')

Discovery : you can sort on a column with the Sort By feature even though the column is not shown in the book list.

BTW : the PDF version of the manual has a 'misprint', see attachment, shows up in 4 viewers, Firefox, Chrome, XChange and Foxit. I think its been there for a while.

BR
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	264
Size:	78.6 KB
ID:	122153  
BetterRed is offline   Reply With Quote
Old 05-02-2014, 01:18 PM   #9
enriquep
Connoisseur
enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.
 
enriquep's Avatar
 
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
Some time ago I wanted to create a column that sorts books by date and time added (or modified) - and I managed to do it (... with a lot of help from others!!). I use it to keep track of changes, new additions, etc.

I know that this is not exactly what you are looking for, but having a look at that thread might be of some help: https://www.mobileread.com/forums/sho...d.php?t=238284
enriquep is offline   Reply With Quote
Old 05-02-2014, 06:44 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by enriquep View Post
Some time ago I wanted to create a column that sorts books by date and time added (or modified) - and I managed to do it (... with a lot of help from others!!). I use it to keep track of changes, new additions, etc.

I know that this is not exactly what you are looking for, but having a look at that thread might be of some help: https://www.mobileread.com/forums/sho...d.php?t=238284
@enriquep - That link is this thread, I suspect you really meant this thread https://www.mobileread.com/forums/sho...d.php?t=154780

BR
BetterRed is offline   Reply With Quote
Old 05-03-2014, 03:57 AM   #11
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Sorry, got busy and forgot to reply to this.
Quote:
Originally Posted by BetterRed View Post
@chaley - thanks, yes, the new backend did speed up composite columns, I was able to reinstate one that I had previously removed because it was having an adverse effect on performance - so far so good.
Good to hear.
Quote:
The three formats_xxx functions work fine in Book Information as I envisaged. Would be good if one could optionally specify a format eg formats_size('EPUB'), formats_modtimes('MM/dd/yyyy', 'AZW3')
You can do this by composing two functions. "select" and the formats_ function you want to use. Example:
Code:
program: select(formats_modtimes('yyyy-MM-dd'), 'EPUB')
returns the date the EPUB was modified, or the empty string if there isn't an EPUB. Note that the key in "select" is case sensitive.
Quote:
BTW : the PDF version of the manual has a 'misprint', see attachment, shows up in 4 viewers, Firefox, Chrome, XChange and Foxit. I think its been there for a while.

BR
Oh well. To paraphrase Kovid when he replies to bug reports involving PDF, "PDF has various limitations".
chaley is offline   Reply With Quote
Old 05-03-2014, 05:23 AM   #12
enriquep
Connoisseur
enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.
 
enriquep's Avatar
 
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
Quote:
Originally Posted by BetterRed View Post
@enriquep - That link is this thread, I suspect you really meant this thread https://www.mobileread.com/forums/sho...d.php?t=154780

BR
BetterRed, You are absolutely right
enriquep is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BCE date display kite Library Management 2 08-12-2012 12:33 AM
Date Added column? Can I set date when book added to library? fitzhugh Calibre 4 06-03-2012 05:42 PM
Date display DarkRose Amazon Kindle 2 08-08-2011 01:00 PM
File Name display option in Library? FoxkehKayak enTourage Archive 5 11-13-2010 07:09 AM


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


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