[ Index ]
 

Code source de PHP PEAR 1.4.5

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

title

Body

[fermer]

/MDB/ -> Date.php (sommaire)

(pas de description)

Poids: 174 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

MDB_Date:: (7 méthodes):
  mdbNow()
  mdbToday()
  mdbTime()
  date2Mdbstamp()
  unix2Mdbstamp()
  mdbstamp2Unix()
  mdbstamp2Date()


Classe: MDB_Date  - X-Ref

Several methods to convert the MDB native timestamp format (ISO based)
to and from data structures that are convienient to worth with in side of php.
For more complex date arithmetic please take a look at the Date package in PEAR

mdbNow()   X-Ref
return the current datetime

return: string current datetime in the MDB format

mdbToday()   X-Ref
return the current date

return: string current date in the MDB format

mdbTime()   X-Ref
return the current time

return: string current time in the MDB format

date2Mdbstamp($hour = NULL, $minute = NULL, $second = NULL,$month = NULL, $day = NULL, $year = NULL)   X-Ref
convert a date into a MDB timestamp

param: integer $hour hour of the date
param: integer $minute minute of the date
param: integer $second second of the date
param: integer $month month of the date
param: integer $day day of the date
param: integer $year year of the date
return: string a valid MDB timestamp

unix2Mdbstamp($unix_timestamp)   X-Ref
convert a unix timestamp into a MDB timestamp

param: integer $unix_timestamp a valid unix timestamp
return: string a valid MDB timestamp

mdbstamp2Unix($mdb_timestamp)   X-Ref
convert a MDB timestamp into a unix timestamp

param: integer $mdb_timestamp a valid MDB timestamp
return: string unix timestamp with the time stored in the MDB format

mdbstamp2Date($mdb_timestamp)   X-Ref
convert a MDB timestamp into an array containing all
values necessary to pass to php's date() function

param: integer $mdb_timestamp a valid MDB timestamp
return: array with the time split



Généré le : Sun Feb 25 14:08:00 2007 par Balluche grâce à PHPXref 0.7