how many days since june 12 1829

An interesting exercise is to write a computer program to find the number of days that have inclusively elapsed from one date to another later date.
In the question asking how many days have elapsed from June 12th 1829 until September 22nd 2019, the inclusion means including the days, June 12th and September 22nd.
Every year divisible by four and not ending in two zeros is a leap year. A year ending in two zeros has to be divisible by four hundred to be a leap year. Leap years have 366 days.
An approximate answer is much easier to come by, thus: June 12th 1829 until December 31st 1829 is 22 days to end of June, the 31 days July, 31 days August, 30 days September, 31 October, 30 November, and 31 December of 1829. Adding, there are 206 days remaining in the year 1829.
From December 31st 1829 until December 31st 2018 there are:189 years.Since on average there are 365.25 days in each year, 189 years is 189 x 365.25 days, which is 69032.25 days.
From December 31st 2018 until September 22nd 2019, counting the days of each month plus twenty-two days in September 2019 gives: 31 days in January 2019 + 28 +31 + 30 + 31 + 30 + 31 + 31 + 22 days which is:265 days.
Addition gives:206 + 69032 + 265 days, which is: 69503 days from 20th June 1829 until 22nd September 2019, ignoring 0.25 days.
The day dated 12th June 1829 is not included, but the day dated 22nd September 2019 is included in the answer which is estimated to be 69503 days.

Artikel Terkait

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel