Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

jewishtojd()

Example

Convert a Jewish date to a Julian Day Number.

<?php
$jd=jewishtojd(6,20,2007);
echo $jd;
?>

Definition and Usage

The jewishtojd() function converts a Jewish calendar date to a Julian Day Number.

Note: While this function can handle dates as far back as year 1 (3761 B.C.), it’s important to note that in ancient times, months began when the new moon was first observed, rather than being calculated by a formula.

Tip: Use the jdtojewish() function to convert a Julian Day Number to a Jewish calendar date.

Syntax

jewishtojd(month,day,year);

Parameter Values

 

Parameter

Description

month

Required. Specifies the month as a number between 1 and 13.

day

Required. Specifies the day as a number between 1 and 30.

year

Required. Specifies the year as a number between 1 and 9999.

Technical Details

Return Value:

Returns a Julian Day Number.

PHP Version:

4+