src/Marando/AstroDate/Epoch.php
public static function J($year) {
    // Get JD of the epoch
    $jd = static::J2000()->jd + ($year - 2000) * static::DaysJulianYear;

    // Create and return new epoch
    $epoch       = new static($jd);
    $epoch->type = YearType::Julian();
    return $epoch;
  }
public static function J($year) {
    // Get JD of the epoch
    $jd = static::J2000()->jd + ($year - 2000) * static::DaysJulianYear;

    // Create and return new epoch
    $epoch       = new static($jd);
    $epoch->type = YearType::Julian();
    return $epoch;
  }
Creates a new epoch from a Julian year number
@param float $year Year number in Julian years