Top "Leap-year" questions

A leap year is a year containing one additional day, which falls on Feb 29 in the Gregorian calendar.

Leap year calculation in C++ for Homework assignment?

#include <iostream> using namespace std; int main() { int what_year; cout << "Enter calendar year "; cin >&…

c++ leap-year
Handling leap years in Python

I have a program where the user enters a date and then compares it to another date to see which …

python error-handling leap-year
How to get number of days from month and year

I want to get the number of days in the month which the user specifies. I am using this it …

sql sql-server leap-year
Easy way to determine leap year in ruby?

Is there an easy way to determine if a year is a leap year?

ruby datetime leap-year
How do I add 2 years to a date in powerbuilder and account for the leap year correctly?

How do I add 2 years to a date in powerbuilder and account for the leap year correctly? We have a …

powerbuilder leap-year
Getting my program to go back to the "top" (if statement) (Java)

I have a program to calculate leap year, however, it only works past about the year 1750 so I want my …

java if-statement while-loop leap-year
Calculating a time duration with Joda-Time

I'm trying to use Joda-Time in order to know time durations between two points in time, where each point is …

java timezone jodatime dst leap-year
Calculating number of days between two dates that are in a leap year

Given two dates, what is the best method to calculate the number of days between those two dates that fall …

algorithm leap-year