Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/louis-aime/milesian_converter_php
Converter between date in Milesian and Julian day.
https://github.com/louis-aime/milesian_converter_php
calendar easter julian-day milesian
Last synced: 4 days ago
JSON representation
Converter between date in Milesian and Julian day.
- Host: GitHub
- URL: https://github.com/louis-aime/milesian_converter_php
- Owner: Louis-Aime
- License: mit
- Created: 2017-11-11T20:24:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T17:28:53.000Z (4 months ago)
- Last Synced: 2024-07-15T21:33:11.113Z (4 months ago)
- Topics: calendar, easter, julian-day, milesian
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Milesian_converter_PHP
Converter between date in Milesian and Julian day.
Tested under PHP 5.4.x.
## Milesian_calendar_conversion
### function long_milesian_year ($year)
boolean, says whether $year (in milesian) is 366 days long or not.
### function milesiantojd ($month, $day, $year)
similar to gregoriantojd, but parameters represent a milesian date;
control of validity of milesian date, year between -4713 and 1465102.
### function cal_from_jd_milesian ($jd)
an extension of the cal_from_jd routine defined since php 4.1.0., for the Milesian calendar.All other routines in this file are utilities implementing the integer division with ceiling.
## Date_converter
A web application demonstrating the milesian conversions.## Easter_lean
The "milesian method" for computing Easter sunday.
### function easter_days_miletus ($year, $method = CAL_EASTER_ROMAN)
Compute Easter day the same way as easter_day in PHP.## Compare_easter_days_cmd
Use as a command line in order to compare easter_days_miletus with the standard function easter_days.
- Argument 1 denotes the easter_days method, 0:normal, 1:Roman, 2:Gregorian, 3:Julian,
- Argument 2 is first year of comparison,
- Argument 3 is last year.If a difference occurs, the results are displayed.