forums.tropy.org

About BC dates and date ranges

Hi,
I have two questions concerning dates (the property in my template is dc:date and the datatype is tropy.date, the language is french) :

  1. I whant to write down c. 100 av. J.-C. but if i insert -0100~ i get c. 101 av. J.-C.… Why does it turn 100 BC into 101 BC??

  2. I would like to know if Tropy actually supports date ranges like 1540/1544 to re-format them other ways, for example, something like 1540-1544 whould look nicer

Thank you in advance

Regarding the first question: the ISO input format is using astronomical year numbers, that is, 1 BC is 0, 2 BC is -1, and 101 BC, therefore, is -100. Now, the manual input will always use the astronomical years, but we hope to create a date input widget at some point where we’d probably make this configurable. (Note that we also have some issues we need to address in the underlying date library, for example 0 and 4 AD are currently treated as leap years).

As for date intervals, we do support them, but they don’t have any special purpose yet. We could format them as per suggestion in most locales (@flachware what do you think?) but when entered manually you should definitely use the forward slash – this way, the intervals will be recognized correctly when we start adding dedicated features that use this information (e.g., search by date range – if the range is entered properly we’ll be able to compute overlapping ranges correctly). Again, a dedicated date input widget will make this easier, but we first have to design it (the usual date picker widgets are not optimized for historical dates, uncertainty and so on, that’s why we’ll probably have to come up with one ourselves).

Yes I think we should format ISO ranges (1540/1544) in a nicer way based on the locale (most of our languages would use the en dash as separator, not sure about Chinese and Japanese).