You can use gregoriantojd, which has a date range of 4714 BC to 9999 AD. A much wider range than 1900 (1970) -2038. If you are trying to calculate the differences by date, they are pretty close. Well, with the exception of the βlostβ 10 days, October 4-14, 1582. And because of the different calculation of a leap year, you will be disconnected for one day every 100 years.
source share