Open in app
Elye
6.7K Followers
About

Sign in

6.7K Followers
About
Open in app
Elye

Elye

Oct 15, 2017·1 min read

Thanks for pointing out leap year calculation is incorrect. I have modified the code per https://www.timeanddate.com/date/leapyear.html. Note, year 2000 has a leap year though. I remember that day :)

Elye

Passionate about learning, and sharing mobile development and others https://twitter.com/elye_project https://www.facebook.com/elye.proj

Date calculations like isLeapYear should never be done on your own.
1
1

Valentin Slawicek

More from Elye

Passionate about learning, and sharing mobile development and others https://twitter.com/elye_project https://www.facebook.com/elye.proj

More From Medium

Docker-Compose made Easy with Elasticsearch and Kibana

Elye in Level Up Coding

Learning Elasticsearch Basic Easily

Elye in Level Up Coding

Loading Image in Android Jetpack Compose Made Easy

Elye in Mobile App Development Publication

Jetpack Compose Image Content ScaleType Fully Illustrated

Elye in Mobile App Development Publication

The Crazy Android Fragment Bug I’ve Investigated

Elye in Mobile App Development Publication

Why I Prefer Imperfect Software Development Practices

Elye in Better Programming

7 Common Mistakes Easily Made with Android Fragment

Elye in Mobile App Development Publication

Android Bi-direction Infinite ViewPager 2 Scrolling

Elye in Mobile App Development Publication

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store