for the first one, I'm suggesting to add "p" character before String and Pattern Keys i.e, "'pYYYY-pMM-pdd" and "'py pj'". Another easier and lazier approach would be adding the argument usePersianDialect to parse and format functions and just replace Latin numerals to Persians before parsing and after formatting. I could implement this feature, since Kotlin first, i could also convert the project to Kotlin.
the second one is as easy as the implemented adding day/month/year functionality, instead of adding to timeInMilliSecond we could subtract.
Hi
Thank you for your suggestion.
Since v0.9 is almost ready for release with some important bug fix, I will consider this feature for the first stable version v1.0.
parsing and formatting in Persian numerals
subtractDate
for the first one, I'm suggesting to add "p" character before String and Pattern Keys i.e, "'pYYYY-pMM-pdd" and "'py pj'". Another easier and lazier approach would be adding the argument
usePersianDialect
toparse
andformat
functions and just replace Latin numerals to Persians before parsing and after formatting. I could implement this feature, since Kotlin first, i could also convert the project to Kotlin.the second one is as easy as the implemented adding day/month/year functionality, instead of adding to
timeInMilliSecond
we could subtract.let me know what you think.