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

Class: MDB2_Date

Source Location: /MDB2-2.5.0b5/MDB2/Date.php

Class Overview


Several methods to convert the MDB2 native timestamp format (ISO based) to and from data structures that are convenient to worth with in side of php.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 63]
Several methods to convert the MDB2 native timestamp format (ISO based) to and from data structures that are convenient 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 122]

string date2Mdbstamp( [int $hour = null], [int $minute = null], [int $second = null], [int $month = null], [int $day = null], [int $year = null])

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

Parameters:

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

[ Top ]

mdbNow   [line 73]

string mdbNow( )

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

[ Top ]

mdbstamp2Date   [line 174]

array mdbstamp2Date( int $mdb_timestamp)

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

Parameters:

int   $mdb_timestamp     a valid MDB2 timestamp

[ Top ]

mdbstamp2Unix   [line 155]

string mdbstamp2Unix( int $mdb_timestamp)

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

Parameters:

int   $mdb_timestamp     a valid MDB2 timestamp

[ Top ]

mdbTime   [line 101]

string mdbTime( )

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

[ Top ]

mdbToday   [line 87]

string mdbToday( )

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

[ Top ]

unix2Mdbstamp   [line 139]

string unix2Mdbstamp( int $unix_timestamp)

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

Parameters:

int   $unix_timestamp     a valid unix timestamp

[ Top ]


Documentation generated on Mon, 29 Oct 2012 16:00:08 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.