Open in app
Elye
6.3K Followers
About

Sign in

6.3K Followers
About
Open in app
Date calculations like isLeapYear should never be done on your own.
1
1

Valentin Slawicek

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 :)

Written by

Elye

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

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

Use Swift Struct For Total Immutability

Elye in Mobile App Development Publication

Android Auto Library Initializer During Startup

Elye in Mobile App Development Publication

Life beyond Android Application

Elye in Mobile App Development Publication

When your Android Studio breakpoint doesn’t stop

Elye in Mobile App Development Publication

Access CGContext in iOS for drawing

Elye in Mobile App Development Publication

Prefer Struct over Class in Swift

Elye in Mobile App Development Publication

Enable Multiple Apps Access to the same Google Cloud Services

Elye in Mobile App Development Publication

7 Gotchas When Explore Kotlin Coroutine

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