maxlath / wikibase-cli

read and edit a Wikibase instance from the command line
MIT License
226 stars 24 forks source link

Select Julian dates #78

Closed generalist closed 4 years ago

generalist commented 5 years ago

A small feature request: is it possible for the date edits to allow the user to specify a calendar?

At the moment, all date edits are put through as Gregorian, eg/ wd ac Q4115189 P580 '1402-02-26' -> result

It would be great if we could have some way to explicitly set a date to be Julian if desired. (Defaulting to Gregorian unless specifically stated otherwise would probably be sensible - most people won't need to think about calendar schemes)

Thanks!

maxlath commented 4 years ago

it's now (v15.2.0) possible:

wd ac Q4115189 P580 '{"time":"1402-02-26","calendar":"julian"}'

I'm not sure I get the subtleties of Julian dates, so please let me know if you see anything weird