MDB
[ class tree: MDB ] [ index: MDB ] [ all elements ]

Class: MDB_Date

Source Location: /MDB-1.3.0/MDB/Date.php

Class Overview


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.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 57]
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



[ Top ]


Method Detail

date2Mdbstamp   [line 115]

string date2Mdbstamp( [integer $hour = NULL], [integer $minute = NULL], [integer $second = NULL], [integer $month = NULL], [integer $day = NULL], [integer $year = NULL])

convert a date into a MDB timestamp
  • Return: a valid MDB timestamp
  • Access: public

Parameters:

integer   $hour     hour of the date
integer   $minute     minute of the date
integer   $second     second of the date
integer   $month     month of the date
integer   $day     day of the date
integer   $year     year of the date

[ Top ]

mdbNow   [line 67]

string mdbNow( )

return the current datetime
  • Return: current datetime in the MDB format
  • Access: public

[ Top ]

mdbstamp2Date   [line 164]

array mdbstamp2Date( integer $mdb_timestamp)

convert a MDB timestamp into an array containing all values necessary to pass to php's date() function
  • Return: with the time split
  • Access: public

Parameters:

integer   $mdb_timestamp     a valid MDB timestamp

[ Top ]

mdbstamp2Unix   [line 146]

string mdbstamp2Unix( integer $mdb_timestamp)

convert a MDB timestamp into a unix timestamp
  • Return: unix timestamp with the time stored in the MDB format
  • Access: public

Parameters:

integer   $mdb_timestamp     a valid MDB timestamp

[ Top ]

mdbTime   [line 95]

string mdbTime( )

return the current time
  • Return: current time in the MDB format
  • Access: public

[ Top ]

mdbToday   [line 81]

string mdbToday( )

return the current date
  • Return: current date in the MDB format
  • Access: public

[ Top ]

unix2Mdbstamp   [line 131]

string unix2Mdbstamp( integer $unix_timestamp)

convert a unix timestamp into a MDB timestamp
  • Return: a valid MDB timestamp
  • Access: public

Parameters:

integer   $unix_timestamp     a valid unix timestamp

[ Top ]


Documentation generated on Sun, 16 May 2004 05:23:29 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.