• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calculating historical dates

 
Ranch Hand
Posts: 40
MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Very briefly, are there any java classes which can calculate dates prior to 1 January 1970 and also 1752?

The latter year was that in which the Julian calendar changed over to the Gregorian one (in most of Europe) - the length of the year was more closely defined to be 365 days, 5 hours, 48 minutes and 46 seconds. Before it was given as 365 days and 6 hours.

Under the new definition the 'leap day' was lost on the centennial year (double leap year) unless that year was completely devisable by 400. If so then it kept its leap year status. This all meant that in October of 1752, 13 days were lost to account for the 13 double leap years that had elapsed since Christian calendars were first drawn up. This caused traders to riot in the streets of European cities, as they thought that they were losing precious days of work...!
[ June 30, 2008: Message edited by: Stuart Lord ]
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like java.util.GregorianCalendar does. Have a look at its API documentation, it looks like most of the points you addressed are covered.
 
Stuart Lord
Ranch Hand
Posts: 40
MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Paul - Thanks for your help, I'll be interested to find out what the API says vis-a-vis the GregorianCalendar class.
 
Have you no shame? Have you no decency? Have you no tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic