answersLogoWhite

0


Best Answer

If you want to determine whether a year is a leap year. Use the cal command for the month of February. So to check 2012, for example, do:

cal 2 2012

and see if it prints 28 or 29 days.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you determine leap years using Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which wireless security technology is a good choice when using Cisco equipment in conjunction with operating systems such as Windows and Linux?

LEAP


How many years in 42 weeks?

In an average year, there are 52 weeks. Hence in 42 years, there are 52 x 42 weeks = 2184 weeks. However, if you want to take the number of days + leap years into account (which occur every four years), then you must calculate using the number of days. Therefore, on average, there are 365.25 days per year (taking into account leap years). 365.25 x 42 = 15340.5 15340.5/7 = 2191.5 weeks. For a specific answer if you're calculating in terms of specific years, you would have to determine which year is the first leap year to determine how many leap years occur in the 42 years.


What factor is used to determine a century leap-year?

Only century years divisible by 400 qualify to be a leap year. Years divisible by 4 but by 100 are NOT leap years, thus 1700, 1800, and 1900 were not leap years but 2000 was. 2100, 2200 and 2300 will not be leap years but 2400 will be.


Will there be a leap year on 2068?

Yes, if the year is divisible by 4 then it is a leap year with this exception:A century year (year ending in 00) is only a leap year if it is divisible by 400So the years 1800, 1900, 3000 are not leap years, for example, but the year 1600, 2000 were leap years and the year 2400 will also be a leap year, if we are still using the same calendar then.


How many seconds in 82 years with leap years?

80 years = 2,524,651,960 secondsUsing: 1 year = 365.25636 days


How many days in one decade using no leap years?

315360000


What would the date be today if we never had stating using leap years?

2009


Whether there is any relation with 400 and 100 with a leap year as it has with 4 to determine?

There will be a leap year every 4 years except if it is divisible by 100. However, if it is also divisible by 400, it will be a leap year. 2000 was a leap year because it is divisible by 400, but 2100 will not be a leap year.


Was the year 1985 a leap year?

No, but 2004 and 2008 were both leap years.


Was 1244 a leap year?

No, because the system of leap years that we use now did not exist then. We did not start using the current system until 1752.


Future leap years?

Leap Years are years divisible by four, with two exceptions. 1. "Century" year numbers (divisible evenly by 100) are not leap years. 2. Years divisible evenly by 400 ARE leap years. So years like 1992 and 1996 were leap years. Century years like 1900 or 2100 are NOT leap years. But 2000 was a leap year, and 2400 will be.


How many years does a leap year come?

There are 4 years between every leap year. Correction: There are 4 years between MOST leap years. That's the case 99.25% of the time. For the other 0.75% of the time, there are 8 years between leap years.