Tutorials Point


  Learning PHP
  Advanced PHP
  PHP Function Reference
  PHP Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

PHP Function jewishtojd ()


previous

Advertisements

Syntax

int jewishtojd ( $month, $day, $year );

Definition and Usage

Converts a date in the Jewish Calendar to Julian Day Count. Although this function can handle dates all the way back to the year 1 (3761 B.C.), such use may not be meaningful. The Jewish calendar has been in use for several thousand years, but in the early days there was no formula to determine the start of a month. A new month was started when the new moon was first observed.

Paramters

ParameterDescription
monthRequired. The month as a number from 1 to 13
dayRequired. The day as a number from 1 to 30
yearRequired. The year as a number between 1 and 9999

Return Value

The julian day for the given jewish date as an integer.

Example

Try out following example:

<?php
echo(jewishtojd(12,10,5060));
?> 

This will produce following result:

2196091

previous Printer Friendly

Advertisements


  

Advertisements