Add support for very long BC dates on `wikidataTimeToISOString`
moshest opened this issue · 3 comments
moshest commented
I'm not familiar with any time frame limitation for the ISO format.
I think that the method wikidataTimeToISOString
should always return a valid ISO string even if the date if not valid of native Date
object. This behaviour is more consistent.
For example:
wdk.wikidataTimeToISOString('-13798000000-00-00T00:00:00Z')
'-13798000000-01-01T00:00:00Z'
moshest commented
Great!
You may update the docs as well:
https://github.com/maxlath/wikidata-sdk/blob/98af9ffcba406e946700601e19423e21f487977a/docs/general_helpers.md#wikidatatimetoisostring