View Single Post
Old 10-06-2013, 12:07 PM   #17
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,495
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You can create a custom column that tells you if the AZW format is newer than other formats. It is a column built from other columns. A template that does something like you want but for EPUB is:
Code:
program: 
	epub = select(formats_modtimes('iso'), 'EPUB');
	prc = select(formats_modtimes('iso'), 'PRC');
	mobi = select(formats_modtimes('iso'), 'MOBI');
	test(epub,
		list_union('', 
				strcat(
					cmp(days_between(epub, prc), 0, '', '', 'PRC'),
					',',
					cmp(days_between(epub, mobi), 0, '', '', 'MOBI')),
				','),
		 '');
The template computes the number of days between the modification times of epub and some other format. If that value is greater than zero then the epub format is newer than the other format, and that format's name is added to the list.

You would need to change the formats to ones you are interested in.

This template can be slow. I have no idea if its value to you would justify the performance penalty.
chaley is offline   Reply With Quote