Quote:
Originally Posted by ownedbycats
Question: Is the lookup name for the 'Date' column date or timestamp?
I see 'date' in the column header tooltip, and 'timestamp' in Preferences > Add Your Own Column.
|
The "official" lookup name is "timestamp". However, various places in calibre, in particular templates, also accept "date" (it accepts any search term as the key).
As for searching, the only acceptable value is "date". Below is the "field metadata" that shows most of what calibre knows about the field.
Code:
('timestamp', {'table':None,
'column':None,
'datatype':'datetime',
'is_multiple':{},
'kind':'field',
'name':_('Date'),
'search_terms':['date'],
'is_custom':False,
'is_category':False,
'is_csp': False}),