/includes/functions_date_hijri.php

Description

Hijri/Arabic Date Functions

The functions in this file are used when converting dates to the Hebrew or Jewish Calendar This file is only loaded if the $LANGUAGE is hebrew, or if the $CALENDAR_FORMAT is hebrew or jewish

phpGedView: Genealogy Viewer Copyright (C) 2002 to 2003 John Finlay and Others

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: functions_date_hijri.php 981 2007-03-21 13:24:38Z fisharebest $
Functions
dateHijri2Greg (line 149)

Get the Gregorian from a Hijri date.

  • return: a string containing the required date in gregorian, (d-m-y)
  • author: VisualMind (visualmind@php.net)
  • author: sfezz (sfezz@users.sourceforge.net)
string dateHijri2Greg (int $d, int $m, int $y)
  • int $d: the Hijri day
  • int $m: the Hijri month
  • int $y: the Hijri year
getArabic (line 192)

Get the Arabic form of a gregorian date

  • return: a string containing the required date in Hijri form (day arabic_month_as_text year)
  • author: VisualMind (visualmind@php.net)
  • author: sfezz (sfezz@users.sourceforge.net)
string getArabic (int $d, int $m, int $y)
  • int $d: The gregorian day of month
  • int $m: The gregorian month number
  • int $y: The gregorian Year
getHijri (line 57)

Get the Hijri conversion from gregorian $d $m $y

  • return: a string containing the required date in Hijri form (day arabic_month_as_text year).
  • author: VisualMind (visualmind@php.net).
  • author: sfezz (sfezz@users.sourceforge.net).
string getHijri (int $d, int $m, int $y)
  • int $d: The gregorian day of month
  • int $m: The gregorian month number
  • int $y: The gregorian Year
_ardInt (line 41)

Probably used to ensure floating points are rounded up and down properly

  • return: a nicely rounded number?
  • author: VisualMind (visualmind@php.net)
float _ardInt (float $float)
  • float $float: the number to round nicely

Documentation generated on Wed, 28 Mar 2007 09:54:17 -0600 by phpDocumentor 1.3.1