Comments (2)
This code returns this values and it seems every time a conversion is happening day is getting reduced by 1
Code:
PersianDate date = new PersianDate();
date.setShYear(binding.yearNp.getValue());
date.setShMonth(binding.monthNp.getValue());
date.setShDay(binding.dayNp.getValue());
Log.e("Date", binding.yearNp.getValue() + "/" + binding.monthNp.getValue() + "/" + binding.dayNp.getValue());
Log.e("Date", date.getShYear() + "/" + date.getShMonth() + "/" + date.getShDay());
Log.e("Date", new PersianDateFormat("Y/m/d").format(new PersianDate(date.getTime())) + " _ " + date.getTime());
Result:
E/Date: 1360/3/8
E/Date: 1360/3/7
E/Date: 1360/03/06 _ 359885553000
from persiandate.
Bug fixed in v1.0
from persiandate.
Related Issues (20)
- PersianDate init exception HOT 3
- Next day of month HOT 1
- Week HOT 5
- AddMonth Issue HOT 5
- persian date for compose desktop HOT 2
- Problem in time parsing HOT 2
- English Support for Month & Weekday Names HOT 4
- previous month calculation has bug HOT 2
- مشکل تابع initJalaliDate HOT 5
- problem in Converting persianDateString to Epoch HOT 2
- 'g' formatter value is is formatted to the same String as `H` HOT 2
- Doesn't compile on API levels lower than 26 HOT 1
- مشکل ساعت دقیقه و ثانیه HOT 1
- دریافت تاریخ یک ماه مشخص یا سال HOT 1
- چک کردن امروز است HOT 2
- تبدیل به String و برعکس HOT 4
- به روز کردن خودکار مقدار shDay باتوجه به مقدار shMonth HOT 2
- تبدیل ساعت میلادی به شمسی HOT 3
- مشکل در سال 1402 HOT 12
- مشکل در متد initJalaliDate HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from persiandate.