[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Pear/Date/ -> Human.php (sommaire)

(pas de description)

Poids: 188 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Date_Human:: (2 méthodes):
  gregorianToHuman()
  HumanToGregorian()


Classe: Date_Human  - X-Ref

Class to convert date strings between Gregorian and Human calendar formats.
The Human Calendar format has been proposed by Scott Flansburg and can be
explained as follows:
The year is made up of 13 months
Each month has 28 days
Counting of months starts from 0 (zero) so the months will run from 0 to 12
New Years day (00) is a monthless day
Note: Leap Years are not yet accounted for in the Human Calendar system

gregorianToHuman($day=0, $month=0, $year=0)   X-Ref
Returns an associative array containing the converted date information
in 'Human Calendar' format.

param: int day in DD format, default current local day
param: int month in MM format, default current local month
param: int year in CCYY format, default to current local year
return: associative array(

HumanToGregorian($day, $month, $year=0)   X-Ref
Returns unix timestamp for a given Human Calendar date

param: int day in DD format
param: int month in MM format
param: int year in CCYY format, default to current local year
return: int unix timestamp of date



Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7