‘calendar.isleap(year)’
method returns true if the year is leap year else false.
>>> import calendar >>> calendar.isleap(2015) False >>> calendar.isleap(2016) True >>> calendar.isleap(3000) False
This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
No comments:
Post a Comment