Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no AM_PM specifier in pattern items #10

Closed
ali73 opened this issue Aug 1, 2018 · 1 comment
Closed

no AM_PM specifier in pattern items #10

ali73 opened this issue Aug 1, 2018 · 1 comment

Comments

@ali73
Copy link

ali73 commented Aug 1, 2018

It would be great if you had put a pattern item for parsing am/pm .
Thanks for your great library.

@samanzamani
Copy link
Owner

samanzamani commented Aug 2, 2018

Since version 0.4 You can use a and A for format ق.ظ|ب.ظ and قبل از ظهر|بعد از ظهر.
sample:

PersianDate pdate = New PersianDate();
PersianDateFormat.format(pdate,"H:i a");//return 11:58 ق.ظ
PersianDateFormat.format(pdate,"H:i A");//return 11:58 قبل از ظهر

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants