how I can get current Persian Date with time4Jin java?
time4J
PersianCalendar jalali = new PersianCalendar();
From the Javadoc of PersianCalendar:
PersianCalendar
PlainDate today = SystemClock.inLocalView().today(); PersianCalendar jalali = today.transform(PersianCalendar.class);
I think there are multiple ways to do so:
nowInSystemTime()
PersianCalendar jalali = PersianCalendar.nowInSystemTime();
using transformation
Hope it helps!
Copyright © 2021 Jogjafile Inc.
From the Javadoc of
PersianCalendar
: