CALPAK - Calendar Calculations
CALPAK is a collection of FORTRAN routines for computing
various simple calendrical quantities. These include converting
from day-number/year to day/month/year format, calculating the time
difference between two dates, finding the day of the week of a given date,
and other feats.
Some common methods of marking the date include:
-
JED, the Julian Ephemeris Date, a count of days since
a long time ago;
-
YMD, for "year, month, day";
-
YJ, for "year, day number".
-
Reference 1:
-
Blackburn and Holford-Strevens,
The Oxford Companion to the Year,
Oxford, 1999.
-
Reference 2:
-
Frank Parise, editor,
The Book of Calendars,
Facts on File, Inc, 1982,
CE11.K4 / 529.3.
-
Reference 3:
-
E Reingold, N Dershowitz, S Clamen,
Calendrical Calculations.
-
Reference 4:
-
E G Richards,
Mapping Time, The Calendar and Its History,
Oxford, 1999.
Files you may copy include:
The list of routines includes:
-
CH_CAP capitalizes a single character.
-
CWS_TO_JED_GPS converts a GPS CWS date to a JED.
-
CWS_TO_S_GPS writes a GPS CWS date into a string.
-
D_RANDOM returns a random double precision in a given range.
-
D_TO_S_LEFT writes a double precision value into a left justified string.
-
DAY_BORROW_ALEXANDRIAN borrows days from months in an Alexandrian date.
-
DAY_BORROW_COMMON borrows days from months in a Common date.
-
DAY_BORROW_EG_CIVIL borrows days from months in an Egyptian Civil date.
-
DAY_BORROW_ENGLISH borrows days from months in an English date.
-
DAY_BORROW_GREGORIAN borrows days from months in a Gregorian date.
-
DAY_BORROW_HEBREW borrows days from months in a Hebrew date.
-
DAY_BORROW_ISLAMIC borrows days from months in an Islamic date.
-
DAY_BORROW_JULIAN borrows days from months in a Julian date.
-
DAY_BORROW_REPUBLICAN borrows days from months in a Republican date.
-
DAY_BORROW_ROMAN borrows days from months in a Roman date.
-
DAY_CARRY_ALEXANDRIAN carries days to months in an Alexandrian date.
-
DAY_CARRY_COMMON carries days to months in a Common date.
-
DAY_CARRY_EG_CIVIL carries days to months in an Egyptian Civil date.
-
DAY_CARRY_ENGLISH carries days to months in an English date.
-
DAY_CARRY_GREGORIAN carries days to months in a Gregorian date.
-
DAY_CARRY_HEBREW carries days to months in a Hebrew date.
-
DAY_CARRY_ISLAMIC carries days to months in an Islamic date.
-
DAY_CARRY_JULIAN carries days to months in a Julian date.
-
DAY_CARRY_REPUBLICAN carries days to months in a Republican date.
-
DAY_CARRY_ROMAN carries days to months in a Roman date.
-
DAYS_BEFORE_MONTH_COMMON returns the number of days before a Common month.
-
DAYS_BEFORE_MONTH_GREGORIAN returns the number of days before a Gregorian month.
-
DAYS_BEFORE_MONTH_JULIAN returns the number of days before a Julian month.
-
DEFLATE_COMMON "deflates" dates in the Common Calendar transition month.
-
DEFLATE_ENGLISH "deflates" dates in the English Calendar transition month.
-
DIGIT_TO_CH returns the character representation of a decimal digit.
-
EASTER_DS computes the month and day of Easter for a Common year.
-
EASTER_EGR computes the month and day of Easter for a Common year.
-
EASTER_EGR2 computes the month and day of Easter for a Common year.
-
EASTER_JULIAN computes the date of Easter in the Julian calendar.
-
EASTER_JULIAN2 computes the date of Easter in the Julian calendar.
-
EASTER_KNUTH computes the month and day of Easter for a Common year.
-
EASTER_STEWART computes the month and day of Easter for a Gregorian year.
-
EPOCH_TO_JED_AKBAR returns the epoch of the Akbar calendar as a JED.
-
EPOCH_TO_JED_ALEXANDRIAN returns the epoch of the Alexandrian calendar as a JED.
-
EPOCH_TO_JED_ARMENIAN returns the epoch of the Armenian calendar as a JED.
-
EPOCH_TO_JED_BAHAI returns the epoch of the Bahai calendar as a JED.
-
EPOCH_TO_JED_BESSEL returns the epoch of the Bessel calendar as a JED.
-
EPOCH_TO_JED_CHINESE returns the epoch of the Chinese calendar as a JED.
-
EPOCH_TO_JED_COMMON returns the epoch of the Common calendar as a JED.
-
EPOCH_TO_JED_COPTIC returns the epoch of the Coptic calendar as a JED.
-
EPOCH_TO_JED_DECCAN returns the epoch of the Fasli Deccan calendar as a JED.
-
EPOCH_TO_JED_EG_CIVIL returns the epoch of the Egyptian Civil calendar as a JED.
-
EPOCH_TO_JED_EG_LUNAR returns the epoch of the Egyptian Lunar calendar as a JED.
-
EPOCH_TO_JED_ENGLISH returns the epoch of the English calendar as a JED.
-
EPOCH_TO_JED_ETHIOPIAN returns the epoch of the Ethiopian calendar as a JED.
-
EPOCH_TO_JED_GPS returns the epoch of the GPS calendar as a JED.
-
EPOCH_TO_JED_GREEK returns the epoch of the Greek calendar as a JED.
-
EPOCH_TO_JED_GREGORIAN returns the epoch of the Gregorian calendar as a JED.
-
EPOCH_TO_JED_HEBREW returns the epoch of the Hebrew calendar as a JED.
-
EPOCH_TO_JED_HINDU_SOLAR returns the epoch of the Hindu solar calendar as a JED.
-
EPOCH_TO_JED_ISLAMIC_A returns the epoch of the Islamic A calendar as a JED.
-
EPOCH_TO_JED_ISLAMIC_B returns the epoch of the Islamic B calendar as a JED.
-
EPOCH_TO_JED_JED returns the epoch of the JED as a JED.
-
EPOCH_TO_JED_JELALI returns the epoch of the Jelali calendar as a JED.
-
EPOCH_TO_JED_JULIAN returns the epoch of the Julian calendar as a JED.
-
EPOCH_TO_JED_KHWARIZMIAN returns the epoch of the Khwarizmian calendar as a JED.
-
EPOCH_TO_JED_MACEDONIAN returns the epoch of the Macedonian calendar as a JED.
-
EPOCH_TO_JED_MAYAN_LONG returns the epoch of the Mayan long count calendar as a JED.
-
EPOCH_TO_JED_MJD returns the epoch of the MJD calendar as a JED.
-
EPOCH_TO_JED_PERSIAN returns the epoch of the Persian calendar as a JED.
-
EPOCH_TO_JED_REPUBLICAN returns the epoch of the Republican calendar as a JED.
-
EPOCH_TO_JED_ROMAN returns the epoch of the Roman calendar as a JED.
-
EPOCH_TO_JED_SAKA returns the epoch of the Saka calendar as a JED.
-
EPOCH_TO_JED_SOOR_SAN returns the epoch of the Fasli Soor San calendar as a JED.
-
EPOCH_TO_JED_SYRIAN returns the epoch of the Syrian calendar as a JED.
-
EPOCH_TO_JED_UNIX returns the epoch of the UNIX calendar as a JED.
-
EPOCH_TO_JED_Y2K returns the epoch of the Y2K calendar as a JED.
-
EPOCH_TO_JED_ZOROASTRIAN returns the epoch of the Zoroastrian calendar as a JED.
-
FRAC_BORROW_COMMON borrows fractions from days in a Common YMDF date.
-
FRAC_BORROW_ENGLISH borrows fractions from days in an English YMDF date.
-
FRAC_BORROW_GREGORIAN borrows fractions from days in a Gregorian YMDF date.
-
FRAC_BORROW_HEBREW borrows fractions from days in a Hebrew YMDF date.
-
FRAC_BORROW_ISLAMIC borrows fractions from days in an Islamic YMDF date.
-
FRAC_BORROW_JULIAN borrows fractions from days in a Julian YMDF date.
-
FRAC_BORROW_REPUBLICAN borrows fractions from days in a Republican YMDF date.
-
FRAC_BORROW_ROMAN borrows fractions from days in a Roman YMDF date.
-
FRAC_CARRY_COMMON carries fractions to days in a Common YMDF date.
-
FRAC_CARRY_ENGLISH carries fractions to days in an English YMDF date.
-
FRAC_CARRY_GREGORIAN carrys fractions from days in a Gregorian YMDF date.
-
FRAC_CARRY_HEBREW carrys fractions from days in a Hebrew YMDF date.
-
FRAC_CARRY_ISLAMIC carrys fractions from days in an Islamic YMDF date.
-
FRAC_CARRY_JULIAN carrys fractions from days in a Julian YMDF date.
-
FRAC_CARRY_REPUBLICAN carrys fractions from days in a Republican YMDF date.
-
FRAC_CARRY_ROMAN carries fractions to days in a Roman YMDF date.
-
FRAC_TO_HMS converts a fractional day into hours, minutes, seconds.
-
FRAC_TO_S writes a positive fraction into a left justified character string.
-
HMS_TO_S "prints" an HMS date into a string.
-
HOUR_BORROW_COMMON "borrows" a day of hours.
-
HOUR_CARRY_COMMON is given a YMDH date, and carries hours to days.
-
I_MODP returns the positive remainder when I is divided by J.
-
I_SWAP swaps two integers.
-
I_TO_A returns the I-th alphabetic character.
-
I_TO_ROMAN converts an integer to a string of Roman numerals.
-
I_TO_S_LEFT converts an integer to a left-justified string.
-
I_TO_S_ZERO converts an integer to a string, with zero padding.
-
I_WRAP forces an integer to lie between given limits by wrapping.
-
INFLATE_COMMON "inflates" dates in the Common Calendar transition month.
-
INFLATE_ENGLISH "inflates" dates in the English Calendar transition month.
-
J_BORROW_COMMON borrows year-days from years in a Common date.
-
J_BORROW_ENGLISH borrows year-days from years in an English date.
-
J_BORROW_GREGORIAN borrows year-days from years in a Gregorian date.
-
J_BORROW_HEBREW borrows year-days from years in a Hebrew date.
-
J_BORROW_ISLAMIC borrows year-days from years in an Islamic date.
-
J_BORROW_JULIAN borrows year-days from years in a Julian date.
-
J_BORROW_REPUBLICAN borrows year-days from years in a Republican date.
-
J_BORROW_ROMAN borrows year-days from years in a Roman date.
-
J_CARRY_COMMON carries year-days to years in a Common date.
-
J_CARRY_ENGLISH carries year-days to years in an English date.
-
J_CARRY_GREGORIAN carries year-days to years in a Gregorian date.
-
J_CARRY_HEBREW carries year-days to years in a Hebrew date.
-
J_CARRY_ISLAMIC carries year-days to years in an Islamic date.
-
J_CARRY_JULIAN carries year-days to years in a Julian date.
-
J_CARRY_REPUBLICAN carries year-days to years in a Republican date.
-
J_CARRY_ROMAN carries year-days to years in a Roman date.
-
JED_CHECK checks a Julian Ephemeris Date.
-
JED_TEST returns some "interesting" JED's.
-
JED_TO_CWS_GPS converts a JED to a GPS CWS date.
-
JED_TO_MAYAN_LONG converts a JED to a Mayan long count date.
-
JED_TO_MAYAN_ROUND converts a JED to a Mayan round date.
-
JED_TO_MJD converts a JED to a modified JED.
-
JED_TO_SS_UNIX converts a JED to a UNIX SS date.
-
JED_TO_WEEKDAY computes the day of the week from a JED.
-
JED_TO_YEAR_HEBREW determines the year in the Hebrew calendar when a JED occurred.
-
JED_TO_YEARCOUNT_BESSEL converts a JED to Bessel year count.
-
JED_TO_YEARCOUNT_JULIAN converts a JED to a Julian year count.
-
JED_TO_YJF_COMMON converts a JED to a Common YJF date.
-
JED_TO_YJF_ENGLISH converts a JED to an English YJF date.
-
JED_TO_YJF_GREGORIAN converts a JED to a Gregorian YJF date.
-
JED_TO_YJF_HEBREW converts a JED to a Hebrew YJF date.
-
JED_TO_YJF_ISLAMIC_A converts a JED to an Islamic-A YJF date.
-
JED_TO_YJF_ISLAMIC_B converts a JED to an Islamic-B YJF date.
-
JED_TO_YJF_JULIAN converts a JED to a Julian YJF date.
-
JED_TO_YJF_REPUBLICAN converts a JED to a Republican YJF date.
-
JED_TO_YJF_ROMAN converts a JED to a Roman YJF date.
-
JED_TO_YMDF_ALEXANDRIAN converts a JED to an Alexandrian YMDF date.
-
JED_TO_YMDF_ARMENIAN converts a JED to an Armenian YMDF date.
-
JED_TO_YMDF_BAHAI converts a JED to a Bahai YMDF date.
-
JED_TO_YMDF_COMMON converts a JED to a Common YMDF date.
-
JED_TO_YMDF_COPTIC converts a JED to a Coptic YMDF date.
-
JED_TO_YMDF_EG_CIVIL converts a JED to an Egyptian Civil YMDF date.
-
JED_TO_YMDF_EG_LUNAR converts a JED to an Egyptian Lunar YMDF date.
-
JED_TO_YMDF_ENGLISH converts a JED to an English YMDF date.
-
JED_TO_YMDF_ETHIOPIAN converts a JED to an Ethiopian YMDF date.
-
JED_TO_YMDF_GREGORIAN converts a JED to a Gregorian YMDF date.
-
JED_TO_YMDF_GREGORIAN2 converts a JED to a Gregorian YMDF date.
-
JED_TO_YMDF_HEBREW converts a JED to a Hebrew YMDF date.
-
JED_TO_YMDF_HINDU_SOLAR converts a JED to a Hindu solar YMDF date.
-
JED_TO_YMDF_ISLAMIC_A converts a JED to an Islamic A YMDF date.
-
JED_TO_YMDF_ISLAMIC_B converts a JED to an Islamic B YMDF date.
-
JED_TO_YMDF_JELALI converts a JED to a Jelali YMDF date.
-
JED_TO_YMDF_JULIAN converts a JED to a Julian YMDF date.
-
JED_TO_YMDF_JULIAN2 converts a JED to a Julian YMDF date.
-
JED_TO_YMDF_JULIAN3 converts a JED to a Julian YMDF date.
-
JED_TO_YMDF_KHWARIZMIAN converts a JED to a Khwarizmian YMDF date.
-
JED_TO_YMDF_MACEDONIAN converts a JED to a Macedonian YMDF date.
-
JED_TO_YMDF_PERSIAN converts a JED to a Persian YMDF date.
-
JED_TO_YMDF_REPUBLICAN converts a JED to a Republican YMDF date.
-
JED_TO_YMDF_ROMAN converts a JED to a Roman YMDF date.
-
JED_TO_YMDF_SAKA converts a JED to a Saka YMDF date.
-
JED_TO_YMDF_SOOR_SAN converts a JED to a Soor San YMDF date.
-
JED_TO_YMDF_SYRIAN converts a JED to a Syrian YMDF date.
-
JED_TO_YMDF_ZOROASTRIAN converts a JED to a Zoroastrian YMDF date.
-
LOWER returns a lowercase version of a string.
-
MAYAN_ROUND_TO_JED converts a Mayan round date to a JED.
-
MAYAN_ROUND_TO_JED converts a Mayan round date to a JED.
-
MINUTE_BORROW_COMMON "borrows" an hour of minutes in a Common date.
-
MINUTE_CARRY_COMMON is given a Common YMDHMS date, and carries minutes to hours.
-
MJD_TO_JED converts a modified JED to a JED.
-
MONTH_BORROW_ALEXANDRIAN borrows a year of months on the Alexandrian calendar.
-
MONTH_BORROW_COMMON borrows a year of months on the Common calendar.
-
MONTH_BORROW_EG_CIVIL borrows a year of months on the Egyptian Civil calendar.
-
MONTH_BORROW_ENGLISH borrows a year of months on the English calendar.
-
MONTH_BORROW_GREGORIAN borrows a year of months on the Gregorian calendar.
-
MONTH_BORROW_HEBREW borrows a year of months on the Hebrew calendar.
-
MONTH_BORROW_ISLAMIC borrows a year of months on the Islamic calendar.
-
MONTH_BORROW_JULIAN borrows a year of months on the Julian calendar.
-
MONTH_BORROW_REPUBLICAN borrows a year of months on the Republican calendar.
-
MONTH_BORROW_ROMAN borrows a year of months on the Roman calendar.
-
MONTH_CAL_COMMON prints a Common month calendar.
-
MONTH_CAL_ENGLISH prints an English month calendar.
-
MONTH_CAL_GREGORIAN prints a Gregorian month calendar.
-
MONTH_CAL_HEBREW prints a Hebrew month calendar.
-
MONTH_CAL_ISLAMIC_A prints an Islamic-A month calendar.
-
MONTH_CAL_JULIAN prints a Julian month calendar.
-
MONTH_CAL_REPUBLICAN prints a Republican month calendar.
-
MONTH_CAL_ROMAN prints a Roman month calendar.
-
MONTH_CAL_STORE_COMMON stores a Common month calendar.
-
MONTH_CARRY_ALEXANDRIAN carries a year of months on the Alexandrian calendar.
-
MONTH_CARRY_COMMON carries a year of months on the Common calendar.
-
MONTH_CARRY_EG_CIVIL carries a year of months on the Egyptian Civil calendar.
-
MONTH_CARRY_ENGLISH carries a year of months on the English calendar.
-
MONTH_CARRY_GREGORIAN carries a year of months on the Gregorian calendar.
-
MONTH_CARRY_HEBREW carries a year of months on the Hebrew calendar.
-
MONTH_CARRY_ISLAMIC carries a year of months on the Islamic calendar.
-
MONTH_CARRY_JULIAN carries a year of months on the Julian calendar.
-
MONTH_CARRY_REPUBLICAN carries a year of months on the Republican calendar.
-
MONTH_CARRY_ROMAN carries a year of months on the Roman calendar.
-
MONTH_LENGTH_ALEXANDRIAN returns the number of days in an Alexandrian month.
-
MONTH_LENGTH_BAHAI returns the number of days in a Bahai month.
-
MONTH_LENGTH_COMMON returns the number of days in a Common month.
-
MONTH_LENGTH_COPTIC returns the number of days in a Coptic month.
-
MONTH_LENGTH_EG_CIVIL returns the number of days in an Egyptian Civil month.
-
MONTH_LENGTH_EG_LUNAR returns the number of days in an Egyptian Lunar month.
-
MONTH_LENGTH_ENGLISH returns the number of days in an English month.
-
MONTH_LENGTH_ETHIOPIAN returns the number of days in an Ethiopian month.
-
MONTH_LENGTH_GREEK returns the number of days in a Greek month.
-
MONTH_LENGTH_GREGORIAN returns the number of days in a Gregorian month.
-
MONTH_LENGTH_HEBREW returns the number of days in a Hebrew month.
-
MONTH_LENGTH_HINDU_SOLAR returns the number of days in a Hindu solar month.
-
MONTH_LENGTH_ISLAMIC returns the number of days in an Iranian month.
-
MONTH_LENGTH_ISLAMIC returns the number of days in an Islamic month.
-
MONTH_LENGTH_JULIAN returns the number of days in a Julian month.
-
MONTH_LENGTH_LUNAR returns the number of days in a lunar month.
-
MONTH_LENGTH_PERSIAN returns the number of days in a Persian month.
-
MONTH_LENGTH_REPUBLICAN returns the number of days in a Republican month.
-
MONTH_LENGTH_ROMAN returns the number of days in a Roman month.
-
MONTH_LENGTH_SYNODIC returns the mean synodic month length.
-
MONTH_NAME_TO_MONTH_COMMON returns the month number of a Common month
-
MONTH_TO_IDES_ROMAN returns the day of the ides of a Roman month.
-
MONTH_TO_MONTH_NAME_BAHAI returns the name of a Bahai month.
-
MONTH_TO_MONTH_NAME_COMMON returns the name of a Common month.
-
MONTH_TO_MONTH_NAME_COPTIC returns the name of a Coptic month.
-
MONTH_TO_MONTH_NAME_EG_CIVIL returns the name of an Egyptian Civil month.
-
MONTH_TO_MONTH_NAME_EG_LUNAR returns the name of an Egyptian Lunar month.
-
MONTH_TO_MONTH_NAME_ETHIOPIAN returns the name of an Ethiopian month.
-
MONTH_TO_MONTH_NAME_GREEK returns the name of a Greek month.
-
MONTH_TO_MONTH_NAME_HEBREW returns the name of a Hebrew month.
-
MONTH_TO_MONTH_NAME_HINDU_LUNAR returns the name of a Hindu lunar month.
-
MONTH_TO_MONTH_NAME_HINDU_SOLAR returns the name of a Hindu solar month.
-
MONTH_TO_MONTH_NAME_IRANIAN returns the name of an Iranian month.
-
MONTH_TO_MONTH_NAME_ISLAMIC returns the name of an Islamic month.
-
MONTH_TO_MONTH_NAME_PERSIAN returns the name of a Persian month.
-
MONTH_TO_MONTH_NAME_REPUBLICAN returns the name of a Republican month.
-
MONTH_TO_MONTH_NAME_ROMAN returns the name of a Roman month.
-
MONTH_TO_MONTH_NAME_SOOR_SAN returns the name of a Soor San month.
-
MONTH_TO_MONTH_NAME_ZOROASTRIAN returns the name of a Zoroastrian month.
-
MONTH_TO_NONES_ROMAN returns the day of the nones of a Roman month.
-
MOON_PHASE_TO_JED calculates the JED of a moon phase.
-
NEW_YEAR_TO_JED_HEBREW returns the JED of the beginning of a Hebrew year.
-
NOW_TO_JED expresses the current date as JED.
-
NOW_TO_YJF_COMMON expresses the current date as a Common YJF date.
-
NOW_TO_YMDF_COMMON expresses the current date as a Common YMDF date.
-
NOW_TO_YMDHMS_COMMON expresses the current date as a Common YMDHMS date.
-
R_RANDOM returns a random real in a given range.
-
R_SWAP switches two real values.
-
R_TO_S_LEFT writes a real into a left justified character string.
-
RANDOM_INITIALIZE initializes the FORTRAN 90 random number seed.
-
S_CAP replaces any lowercase letters by uppercase ones in a string.
-
S_CAT concatenates two strings to make a third string.
-
S_CAT1 concatenates two strings, with a single blank separator.
-
S_EQI is a case insensitive comparison of two strings for equality.
-
S_TO_HMS converts a string into a H:M:S date.
-
S_TO_I reads an integer value from a string.
-
S_TO_YMD_COMMON converts a string into a Common YMD date.
-
S_TO_YMDHMS_COMMON converts a string into a Common YMD H:M:S date.
-
SECOND_BORROW_COMMON "borrows" a minute of seconds in a common date.
-
SECOND_CARRY_COMMON is given a Common YMDHMS date, and carries seconds to minutes.
-
SS_TO_JED_UNIX converts a UNIX SS date to a JED.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
TRANSITION_TO_JED_COMMON returns the Common calendar transition as a JED.
-
TRANSITION_TO_JED_ENGLISH returns the English calendar transition as a JED.
-
TRANSITION_TO_JED_JED returns the JED calendar transition as a JED.
-
TRANSITION_TO_JED_MAYAN_LONG returns the Mayan long count calendar transition as a JED.
-
UNIFORM_01_SAMPLE is a portable random number generator.
-
WEEKDAY_CHECK_COMMON makes sure the Common weekday number is between 1 and 7.
-
WEEKDAY_TO_NAME_BAHAI returns the name of a Bahai weekday.
-
WEEKDAY_TO_NAME_COMMON returns the name of a Common weekday.
-
WEEKDAY_TO_NAME_COMMON2 returns the abbreviated name of a Common weekday.
-
WEEKDAY_TO_NAME_GERMAN returns the name of a German weekday.
-
WEEKDAY_TO_NAME_HEBREW returns the name of a Hebrew weekday.
-
WEEKDAY_TO_NAME_ISLAMIC returns the name of an Islamic weekday.
-
WEEKDAY_TO_NAME_REPUBLICAN returns the name of a Republican weekday.
-
WEEKDAY_TO_NAME_ROMAN returns the name of a Roman weekday.
-
Y_ASTRONOMICAL_TO_COMMON converts an Astronomical year to a Common year.
-
Y_CHECK_ALEXANDRIAN checks an Alexandrian year.
-
Y_CHECK_BAHAI checks a Bahai year.
-
Y_CHECK_COMMON checks a Common year.
-
Y_CHECK_EG_CIVIL checks an Egyptian Civil year.
-
Y_CHECK_ENGLISH checks an English year.
-
Y_CHECK_GREEK checks a Greek year.
-
Y_CHECK_GREGORIAN checks a Gregorian year.
-
Y_CHECK_HEBREW checks a Hebrew year.
-
Y_CHECK_ISLAMIC checks an Islamic year.
-
Y_CHECK_JULIAN checks a Julian year.
-
Y_CHECK_REPUBLICAN checks a Republican year.
-
Y_CHECK_ROMAN checks a Roman year.
-
Y_COMMON_TO_ASTRONOMICAL converts a Common year to an Astronomical year.
-
Y_JULIAN_TO_ROMAN converts a Julian year to a Roman year.
-
Y_ROMAN_TO_JULIAN converts a Roman year to a Julian year.
-
Y_TO_S writes a year into a string.
-
Y_TO_S_ALEXANDRIAN writes an Alexandrian year into a string.
-
Y_TO_S_BAHAI writes a Bahai year into a string.
-
Y_TO_S_COMMON writes a Common year into a string.
-
Y_TO_S_COPTIC writes a Coptic year into a string.
-
Y_TO_S_EG_CIVIL writes an Egyptian Civil year into a string.
-
Y_TO_S_EG_LUNAR writes an Egyptian Lunar year into a string.
-
Y_TO_S_ENGLISH writes an English year into a string.
-
Y_TO_S_ETHIOPIAN writes an Ethiopian year into a string.
-
Y_TO_S_GREEK writes a Greek year into a string.
-
Y_TO_S_GREGORIAN writes a Gregorian year into a string.
-
Y_TO_S_HEBREW writes a Hebrew year into a string.
-
Y_TO_S_ISLAMIC writes an Islamic year into a string.
-
Y_TO_S_JULIAN writes a Julian year into a string.
-
Y_TO_S_PERSIAN writes a Persian year into a string.
-
Y_TO_S_REPUBLICAN writes a Republican year into a string.
-
Y_TO_S_ROMAN writes a Roman year into a string.
-
YEAR_CAL_COMMON prints out a calendar for a Common year.
-
YEAR_IS_EMBOLISMIC_EG_LUNAR returns TRUE if the Egyptian Lunar year was embolismic.
-
YEAR_IS_EMBOLISMIC_GREEK returns TRUE if the Greek year was embolismic.
-
YEAR_IS_EMBOLISMIC_HEBREW returns TRUE if the Hebrew year was embolismic.
-
YEAR_IS_LEAP_ALEXANDRIAN returns TRUE if the Alexandrian year was a leap year.
-
YEAR_IS_LEAP_BAHAI returns TRUE if the Bahai year was a leap year.
-
YEAR_IS_LEAP_COMMON returns TRUE if the Common year was a leap year.
-
YEAR_IS_LEAP_COPTIC returns TRUE if the Coptic year was a leap year.
-
YEAR_IS_LEAP_EG_LUNAR returns TRUE if the Egyptian Lunar year was a leap year.
-
YEAR_IS_LEAP_ENGLISH returns TRUE if the English year was a leap year.
-
YEAR_IS_LEAP_ETHIOPIAN returns TRUE if the Ethiopian year was a leap year.
-
YEAR_IS_LEAP_GREEK returns TRUE if the Greek year was a leap year.
-
YEAR_IS_LEAP_GREGORIAN returns TRUE if the Gregorian year was a leap year.
-
YEAR_IS_LEAP_IRANIAN returns TRUE if the Iranian year was a leap year.
-
YEAR_IS_LEAP_ISLAMIC returns TRUE if the Islamic year was a leap year.
-
YEAR_IS_LEAP_JULIAN returns TRUE if the Julian year was a leap year.
-
YEAR_IS_LEAP_PERSIAN returns TRUE if the Persian year was a leap year.
-
YEAR_IS_LEAP_REPUBLICAN returns TRUE if the Republican year was a leap year.
-
YEAR_IS_LEAP_ROMAN returns TRUE if the Roman year was a leap year.
-
YEAR_LENGTH_ALEXANDRIAN returns the number of days in an Alexandrian year.
-
YEAR_LENGTH_BAHAI returns the number of days in a Bahai year.
-
YEAR_LENGTH_COMMON returns the number of days in a Common year.
-
YEAR_LENGTH_COPTIC returns the number of days in a Coptic year.
-
YEAR_LENGTH_EG_CIVIL returns the number of days in an Egyptian Civil year.
-
YEAR_LENGTH_EG_LUNAR returns the number of days in an Egyptian Lunar year.
-
YEAR_LENGTH_ENGLISH returns the number of days in an English year.
-
YEAR_LENGTH_ETHIOPIAN returns the number of days in an Ethiopian year.
-
YEAR_LENGTH_GREEK returns the number of days in a Greek year.
-
YEAR_LENGTH_GREGORIAN returns the number of days in a Gregorian year.
-
YEAR_LENGTH_HEBREW returns the number of days in a Hebrew year.
-
YEAR_LENGTH_HINDU_SOLAR returns the number of days in a Hindu solar year.
-
YEAR_LENGTH_ISLAMIC returns the number of days in an Islamic year.
-
YEAR_LENGTH_JULIAN returns the number of days in a Julian year.
-
YEAR_LENGTH_LUNAR returns the number of days in a "lunar year".
-
YEAR_LENGTH_MONTHS_ALEXANDRIAN returns the number of months in an Alexandrian year.
-
YEAR_LENGTH_MONTHS_BAHAI returns the number of months in a Bahai year.
-
YEAR_LENGTH_MONTHS_COMMON returns the number of months in a Common year.
-
YEAR_LENGTH_MONTHS_COPTIC returns the number of months in a Coptic year.
-
YEAR_LENGTH_MONTHS_EG_CIVIL returns the number of months in an Egyptian Civil year.
-
YEAR_LENGTH_MONTHS_EG_LUNAR returns the number of months in an Egyptian Lunar year.
-
YEAR_LENGTH_MONTHS_ENGLISH returns the number of months in an English year.
-
YEAR_LENGTH_MONTHS_ETHIOPIAN returns the number of months in an Ethiopian year.
-
YEAR_LENGTH_MONTHS_GREEK returns the number of months in a Greek year.
-
YEAR_LENGTH_MONTHS_GREGORIAN returns the number of months in a Gregorian year.
-
YEAR_LENGTH_MONTHS_HEBREW returns the number of months in a Hebrew year.
-
YEAR_LENGTH_MONTHS_HINDU_LUNAR returns the number of months in a Hindu lunar year.
-
YEAR_LENGTH_MONTHS_HINDU_SOLAR returns the number of months in a Hindu solar year.
-
YEAR_LENGTH_MONTHS_ISLAMIC returns the number of months in an Islamic year.
-
YEAR_LENGTH_MONTHS_JULIAN returns the number of months in a Julian year.
-
YEAR_LENGTH_MONTHS_PERSIAN returns the number of months in a Persian year.
-
YEAR_LENGTH_MONTHS_REPUBLICAN returns the number of months in a Republican year.
-
YEAR_LENGTH_MONTHS_ROMAN returns the number of months in a Roman year.
-
YEAR_LENGTH_PERSIAN returns the number of days in a Persian year.
-
YEAR_LENGTH_REPUBLICAN returns the number of days in a Republican year.
-
YEAR_LENGTH_ROMAN returns the number of days in a Roman year.
-
YEAR_LENGTH_SOLAR returns the number of days in a "solar" year.
-
YEAR_TO_DOMINICAL_COMMON: dominical numbers, Common calendar.
-
YEAR_TO_DOMINICAL_GREGORIAN: dominical numbers, Gregorian calendar.
-
YEAR_TO_DOMINICAL_JULIAN: dominical numbers, Julian calendar.
-
YEAR_TO_EPACT_GREGORIAN returns the epact of a Gregorian year.
-
YEAR_TO_EPACT_JULIAN returns the epact of a Julian year.
-
YEAR_TO_GOLDEN_NUMBER returns the golden number of a Common year.
-
YEAR_TO_INDICTION_COMMON returns the indiction number of a Common year.
-
Y_TO_SCALIGER_COMMON converts a Common year to its Scaliger indices.
-
YEAR_TO_TYPE_HEBREW returns the type of a Hebrew year.
-
YJ_CHECK_COMMON checks a Common YJ date.
-
YJ_CHECK_ENGLISH checks an English YJ date.
-
YJ_CHECK_GREGORIAN checks a Gregorian YJ date.
-
YJ_CHECK_HEBREW checks a Hebrew YJ date.
-
YJ_CHECK_ISLAMIC checks an Islamic YJ date.
-
YJ_CHECK_JULIAN checks a Julian YJ date.
-
YJ_CHECK_REPUBLICAN checks a Republican YJ date.
-
YJ_CHECK_ROMAN checks a Roman YJ date.
-
YJ_TO_S_COMMON writes a Common YJ date into a string.
-
YJ_TO_S_ENGLISH writes an English YJ date into a string.
-
YJ_TO_S_GREGORIAN writes a Gregorian YJ date into a string.
-
YJ_TO_S_HEBREW writes a Hebrew YJ date into a string.
-
YJ_TO_S_ISLAMIC writes an Islamic YJ date into a string.
-
YJ_TO_S_JULIAN writes a Julian YJ date into a string.
-
YJ_TO_S_NUMERIC "prints" a YJ date into a string.
-
YJ_TO_S_REPUBLICAN writes a Republican YJ date into a string.
-
YJ_TO_S_ROMAN writes a Roman YJ date into a string.
-
YJF_CHECK_COMMON normalizes a Common YJF date.
-
YJF_COMPARE compares two YJF dates.
-
YJF_DIF_COMMON computes day difference between two Common YJF dates.
-
YJF_RANDOM_COMMON picks a random Common YJF date between two given dates.
-
YJF_SWAP swaps the data defining two YJF dates.
-
YJF_TO_JED_COMMON converts a Common YJF date to a JED.
-
YJF_TO_JED_ENGLISH converts an English YJF date to a JED.
-
YJF_TO_JED_GREGORIAN converts a Gregorian YJF date to a JED.
-
YJF_TO_JED_HEBREW converts a Hebrew YJF date to a JED.
-
YJF_TO_JED_ISLAMIC_A converts an Islamic-A YJF date to a JED.
-
YJF_TO_JED_ISLAMIC_B converts an Islamic-B YJF date to a JED.
-
YJF_TO_JED_JULIAN converts a Julian YJF date to a JED.
-
YJF_TO_JED_REPUBLICAN converts a Republican YJF date to a JED.
-
YJF_TO_JED_ROMAN converts a Roman YJF date to a JED.
-
YJF_TO_S_COMMON "prints" a Common YJF date into a string.
-
YJF_TO_S_ENGLISH writes an English YJF date into a string.
-
YJF_TO_S_GREGORIAN writes a Gregorian YJF date into a string.
-
YJF_TO_S_HEBREW writes a Hebrew YJF date into a string.
-
YJF_TO_S_ISLAMIC writes an Islamic YJF date into a string.
-
YJF_TO_S_JULIAN writes a Julian YJF date into a string.
-
YJF_TO_S_REPUBLICAN writes a Republican YJF date into a string.
-
YJF_TO_S_ROMAN writes a Roman YJF date into a string.
-
YJF_TO_WEEKDAY_COMMON returns the weekday of a Common YJF date.
-
YJF_TO_YMDF_COMMON converts a Common date from YJF to YMDF format.
-
YJF_TO_YMDF_ENGLISH converts an English date from YJF to YMDF format.
-
YJF_TO_YMDF_GREGORIAN converts a Gregorian date from YJF to YMDF format.
-
YJF_TO_YMDF_HEBREW converts a YJF to YMDF date, both in the Hebrew calendar.
-
YJF_TO_YMDF_ISLAMIC converts a YJF to YMDF date, both in the Islamic calendar.
-
YJF_TO_YMDF_JULIAN converts a YJF to YMDF date, both in the Julian calendar.
-
YJF_TO_YMDF_REPUBLICAN converts a YJF to YMDF date in the Republican calendar.
-
YJF_TO_YMDF_ROMAN converts a YJF to YMDF date in the Roman calendar.
-
YJF_TO_YMDHMS_COMMON converts a Common YJF date to a YMDHMS date.
-
YM_CHECK_ALEXANDRIAN checks an Alexandrian YM date.
-
YM_CHECK_BAHAI checks a Bahai YM date.
-
YM_CHECK_COMMON checks a Common YM date.
-
YM_CHECK_EG_CIVIL checks an Egyptian Civil YM date.
-
YM_CHECK_ENGLISH checks an English YM date.
-
YM_CHECK_GREGORIAN checks a Gregorian YM date.
-
YM_CHECK_HEBREW checks a Hebrew YM date.
-
YM_CHECK_ISLAMIC checks an Islamic YM date.
-
YM_CHECK_JULIAN checks a Julian YM date.
-
YM_CHECK_REPUBLICAN checks a Republican YM date.
-
YM_CHECK_ROMAN checks a Roman YM date.
-
YMD_CHECK_ALEXANDRIAN checks an Alexandrian YMD date.
-
YMD_CHECK_COMMON checks a Common YMD date.
-
YMD_CHECK_EG_CIVIL checks an Egyptian Civil YMD date.
-
YMD_CHECK_ENGLISH checks an English YMD date.
-
YMD_CHECK_GREGORIAN checks a Gregorian YMD date.
-
YMD_CHECK_HEBREW checks a Hebrew YMD date.
-
YMD_CHECK_ISLAMIC checks an Islamic YMD date.
-
YMD_CHECK_JULIAN checks a Julian YMD date.
-
YMD_CHECK_REPUBLICAN checks a Republican YMD date.
-
YMD_CHECK_ROMAN checks a Roman YMD date.
-
YMDF_INC_COMMON increments a Common YMDF date by DAYS days.
-
YMDF_INC_ENGLISH increments an English YMDF date by DAYS days.
-
YMDF_INC_GREGORIAN increments a Gregorian YMDF date by DAYS days.
-
YMDF_INC_HEBREW increments a Hebrew YMDF date by DAYS days.
-
YMDF_INC_ISLAMIC increments an Islamic YMDF date by DAYS days.
-
YMDF_INC_JULIAN increments a Julian YMDF date by DAYS days.
-
YMDF_INC_REPUBLICAN increments a Republican YMDF date by DAYS days.
-
YMDF_INC_ROMAN increments a Roman YMDF date by a DAYS days.
-
YMD_INC_YMD_COMMON increments a Common YMD date by a YMD increment.
-
YMD_TO_S_ALEXANDRIAN "prints" an Alexandrian YMD date into a string.
-
YMD_TO_S_COMMON writes a Common YMD date into a string.
-
YMD_TO_S_EG_CIVIL "prints" an Egyptian Civil YMD date into a string.
-
YMD_TO_S_EG_LUNAR "prints" an Egyptian Lunar YMD date into a string.
-
YMD_TO_S_ENGLISH writes an English YMD date into a string.
-
YMD_TO_S_GREGORIAN writes a Gregorian YMD date into a string.
-
YMD_TO_S_HEBREW "prints" a Hebrew YMD date into a string.
-
YMD_TO_S_ISLAMIC writes an Islamic YMD date into a string.
-
YMD_TO_S_JULIAN writes a Julian YMD date into a string.
-
YMD_TO_S_NUMERIC writes a YMD date into a string.
-
YMD_TO_S_REPUBLICAN writes a Republican YMD date into a string.
-
YMD_TO_S_ROMAN writes a Roman YMD date into a string.
-
YMDF_CHECK_COMMON checks a Common YMDF date.
-
YMDF_CHECK_ENGLISH checks an English YMDF date.
-
YMDF_CHECK_GREGORIAN checks a Gregorian YMDF date.
-
YMDF_CHECK_HEBREW checks a Hebrew YMDF date.
-
YMDF_CHECK_ISLAMIC checks an Islamic YMDF date.
-
YMDF_CHECK_JULIAN checks a Julian YMDF date.
-
YMDF_CHECK_REPUBLICAN checks a Republican YMDF date.
-
YMDF_CHECK_ROMAN checks a Roman YMDF date.
-
YMDF_COMPARE compares two YMD dates.
-
YMDF_DIF_COMMON gets the day difference between two Common YMDF dates.
-
YMDF_DIF_ENGLISH gets the day difference between two English YMDF dates.
-
YMDF_DIF_YMDF_COMMON gets the YMDF difference between two Common YMDF dates.
-
YMDF_NEXT_COMMON returns the Common YMDF date of the next day.
-
YMDF_NEXT_ENGLISH returns the English YMD date of the next day.
-
YMDF_NEXT_GREGORIAN returns the Gregorian YMDF date of the next day.
-
YMDF_NEXT_HEBREW returns the Hebrew YMDF date of the next day.
-
YMDF_NEXT_ISLAMIC returns the Islamic YMDF date of the next day.
-
YMDF_NEXT_JULIAN returns the Julian YMDF date of the next day.
-
YMDF_NEXT_REPUBLICAN returns the Republican YMD date of the next day.
-
YMDF_NEXT_ROMAN returns the Roman YMDF date of the next day.
-
YMDF_PREV_COMMON returns the Common YMDF date of the previous day.
-
YMDF_PREV_ENGLISH returns the English YMDF date of the previous day.
-
YMDF_PREV_GREGORIAN returns the Gregorian YMDF date of the previous day.
-
YMDF_PREV_HEBREW returns the Hebrew YMDF date of the previous day.
-
YMDF_PREV_ISLAMIC returns the Islamic YMDF date of the previous day.
-
YMDF_PREV_JULIAN returns the Julian YMDF date of the previous day.
-
YMDF_PREV_REPUBLICAN returns the Republican YMDF date of the previous day.
-
YMDF_PREV_ROMAN returns the Roman YMDF date of the previous day.
-
YMDF_RANDOM_COMMON picks a random Common YMDF date between two given dates.
-
YMDF_RANDOM_ENGLISH picks a random English YMDF date between two given dates.
-
YMDF_SWAP swaps two YMDF dates.
-
YMDF_TO_JED_ALEXANDRIAN converts an Alexandrian YMDF date to a JED.
-
YMDF_TO_JED_ARMENIAN converts an Armenian YMDF date to a JED.
-
YMDF_TO_JED_BAHAI converts a Bahai YMDF date to a JED.
-
YMDF_TO_JED_COMMON converts a Common YMDF date to a JED.
-
YMDF_TO_JED_COPTIC converts a Coptic YMDF date to a JED.
-
YMDF_TO_JED_EG_CIVIL converts an Egyptian Civil YMDF date to a JED.
-
YMDF_TO_JED_EG_LUNAR converts an Egyptian Lunar YMDF date to a JED.
-
YMDF_TO_JED_ENGLISH converts an English YMDF date to a JED.
-
YMDF_TO_JED_ETHIOPIAN converts an Ethiopian YMDF date to a JED.
-
YMDF_TO_JED_GREGORIAN converts a Gregorian YMDF date to a JED.
-
YMDF_TO_JED_HEBREW converts a Hebrew YMDF date to a JED.
-
YMDF_TO_JED_HINDU_SOLAR converts a Hindu solar YMDF date to a JED.
-
YMDF_TO_JED_ISLAMIC_A converts an Islamic A YMDF date to a JED.
-
YMDF_TO_JED_ISLAMIC_A2 converts an Islamic A YMDF date to a JED.
-
YMDF_TO_JED_ISLAMIC_B converts an Islamic B YMDF date to a JED.
-
YMDF_TO_JED_JELALI converts a Jelali YMDF date to a JED.
-
YMDF_TO_JED_JULIAN converts a Julian YMDF date to a JED.
-
YMDF_TO_JED_JULIAN2 converts a Julian YMDF date to a JED.
-
YMDF_TO_JED_KHWARIZMIAN converts a Khwarizmian YMDF date to a JED.
-
YMDF_TO_JED_MACEDONIAN converts a Macedonian YMDF date to a JED.
-
YMDF_TO_JED_PERSIAN converts a Persian YMDF date to a JED.
-
YMDF_TO_JED_REPUBLICAN converts a Republican YMDF date to a JED.
-
YMDF_TO_JED_ROMAN converts a Roman YMDF date to a JED.
-
YMDF_TO_JED_SAKA converts a Saka YMDF date to a JED.
-
YMDF_TO_JED_SOOR_SAN converts a Soor San YMDF date to a JED.
-
YMDF_TO_JED_SYRIAN converts a Syrian YMDF date to a JED.
-
YMDF_TO_JED_ZOROASTRIAN converts a Zoroastrian YMDF date to a JED.
-
YMDF_TO_S_COMMON writes a Common YMDF date into a string.
-
YMDF_TO_S_ENGLISH writes an English YMDF date into a string.
-
YMDF_TO_S_GREGORIAN writes a Gregorian YMDF date into a string.
-
YMDF_TO_S_HEBREW "prints" a Hebrew YMDF date into a string.
-
YMDF_TO_S_ISLAMIC writes an Islamic YMDF date into a string.
-
YMDF_TO_S_JULIAN writes a Julian YMDF date into a string.
-
YMDF_TO_S_NUMERIC writes a YMDF date into a string.
-
YMDF_TO_S_REPUBLICAN writes a Republican YMDF date into a string.
-
YMDF_TO_S_ROMAN writes a Roman YMDF date into a string.
-
YMDF_TO_WEEK_COMMON returns the week number for a Common YMDF date.
-
YMDF_TO_WEEKDAY_COMMON returns the weekday of a Common YMDF date.
-
YMDF_TO_WEEKDAY_ENGLISH returns the weekday of an English YMDF date.
-
YMDF_TO_WEEKDAY_GREGORIAN returns the weekday of a Gregorian YMDF date.
-
YMDF_TO_WEEKDAY_GREGORIAN2 returns the weekday of a Gregorian YMDF date.
-
YMDF_TO_WEEKDAY_GREGORIAN3 returns the weekday of a Gregorian YMDF date.
-
YMDF_TO_WEEKDAY_GREGORIAN4 returns the weekday of a Gregorian YMDF date.
-
YMDF_TO_WEEKDAY_GREGORIAN5 returns the weekday of a Gregorian YMDF date.
-
YMDF_TO_WEEKDAY_HEBREW returns the weekday of a Hebrew YMDF date.
-
YMDF_TO_WEEKDAY_ISLAMIC_A returns the weekday of an Islamic A YMDF date.
-
YMDF_TO_WEEKDAY_JULIAN computes the weekday of a Julian YMDF date.
-
YMDF_TO_WEEKDAY_JULIAN2 returns the weekday of a Julian YMDF date.
-
YMDF_TO_WEEKDAY_JULIAN3 returns the week day of a Julian YMD date.
-
YMDF_TO_WEEKDAY_REPUBLICAN returns the weekday of a Republican YMDF date.
-
YMDF_TO_YJF_COMMON converts from YMDF to YJF form in the Common calendar.
-
YMDF_TO_YJF_ENGLISH converts from YMDF to YJF form in the English calendar.
-
YMDF_TO_YJF_GREGORIAN converts from YMDF to YJF form in the Gregorian calendar.
-
YMDF_TO_YJF_HEBREW converts from YMDF to YJF form in the Hebrew calendar.
-
YMDF_TO_YJF_ISLAMIC converts from YMDF to YJF form in the Islamic calendar.
-
YMDF_TO_YJF_JULIAN converts from YMDF to YJF form in the Julian calendar.
-
YMDF_TO_YJF_REPUBLICAN converts from YMDF to YJF form in the Republican calendar.
-
YMDF_TO_YJF_ROMAN converts from YMDF to YJF form in the Roman calendar.
-
YMDHMS_CHECK_COMMON checks a Common YMDHMS date.
-
YMDHMS_COMPARE compares two YMDHMS dates.
-
YMDHMS_DIF_DHMS computes the DHMS difference between two YMDHMS dates.
-
YMDHMS_SWAP swaps the data defining two YMDHMS dates.
-
YMDHMS_TO_S_COMMON "prints" a Common YMDHMS date into a string.
-
YMDHMS_TO_YJF_COMMON converts a YMDHMS date to a YJF date.
Back to the FORTRAN software page.
Last revised on 06 June 2001.