View Single Post
Old 06-01-2020, 03:41 AM   #1
tamarissa
Connoisseur
tamarissa began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Aug 2018
Device: Kobo Aura H2O
Get System File Date

I'm looking for a way to make a column that pulls the system file modified date for each type of file associated with a book.

I found this piece of code on this thread

Code:
{:'re(list_item(formats_modtimes('yyyy-MM-dd'), 0, ','), '^.*?:', '')'}
Quote:
This template
  • gets the list of formats and their modification times formatted using the 'iso' date format that includes both the date and the time. (formats_modtimes)
  • selects the first (the most recently modified) format (list_item)
  • Strips off the format name (re)
that is definitely on the right track for what I'm looking for, but not quite what I'm after & I sure can't take it farther.

Is there a way to modify this code to search for only 'epub' or only 'azw' files? I tried editing the part of the equation with the asterisk, but my attempts at trying to figure it out in the template tester only managed to get it to show me the file type modified in the results.

I'm intending to make a separate column for each of those book types.
tamarissa is offline   Reply With Quote