Personal tools

Difference between revisions of "Avoid time calendar problems"

From MohidWiki

Jump to: navigation, search
(Created page with "The MOHID system assume that all dates are in Gregorian calendar. However, the general convention for dates is that for dates: - previous to 5-10-1582 the Julian calendar is th...")
 
Line 1: Line 1:
The MOHID system assume that all dates are in Gregorian calendar. However, the general convention for dates is that for dates:  
+
The MOHID system assume that all dates are in Gregorian calendar. However, the general convention for dates is :  
  
 
- previous to 5-10-1582 the Julian calendar is the valid one
 
- previous to 5-10-1582 the Julian calendar is the valid one
Line 5: Line 5:
 
- between 5-10-1582 and 14-10-1582 there is no valid calendar.  
 
- between 5-10-1582 and 14-10-1582 there is no valid calendar.  
  
For MOHID time is a continuous dimension so was decided to use only one calendar the Gregorian.
+
For MOHID time is a continuous dimension along which evolution equations are solved so was decided to use only one calendar the Gregorian to simplify the input/computation/output .
  
 
If a user wants to use the MOHID tools for a date previous to 14-10-1582 the user must convert the dates from the Julian calendar to the Gregorian date.  
 
If a user wants to use the MOHID tools for a date previous to 14-10-1582 the user must convert the dates from the Julian calendar to the Gregorian date.  

Revision as of 18:48, 12 September 2013

The MOHID system assume that all dates are in Gregorian calendar. However, the general convention for dates is :

- previous to 5-10-1582 the Julian calendar is the valid one - earlier than 14-10-1582 the Gregorian calendar is the valid one - between 5-10-1582 and 14-10-1582 there is no valid calendar.

For MOHID time is a continuous dimension along which evolution equations are solved so was decided to use only one calendar the Gregorian to simplify the input/computation/output .

If a user wants to use the MOHID tools for a date previous to 14-10-1582 the user must convert the dates from the Julian calendar to the Gregorian date. There are many only conversion tools (e.g. http://www.fourmilab.ch/documents/calendar/).

The MOHID programmers can use from ModuleTime serie the function JulianDateToGregorianDate to convert dates from the Julian calendar to the Gregorian one.