Civil Date PHP Package

VernalEquinoxCalculator
in package

FinalYes

Provides vernal-equinox Julian Days for supported Gregorian years.

Table of Contents

Constants

MAX_SUPPORTED_YEAR  : int = 3000
Maximum supported Gregorian calendar year.
MIN_SUPPORTED_YEAR  : int = -1001
Minimum supported Gregorian calendar year.

Methods

julianDay()  : float
Calculates the Julian Day of the vernal equinox for a given Gregorian calendar year.

Constants

Methods

julianDay()

Calculates the Julian Day of the vernal equinox for a given Gregorian calendar year.

public static julianDay(int $gregorianYear) : float
Parameters
$gregorianYear : int

Gregorian calendar year for which to calculate the vernal equinox.

Tags
throws
InvalidArgumentException

If the year is zero or outside the supported range.

Return values
float

Julian Day of the equinox.

On this page

Search results