75 return date(
'Y-m-d H:i:s');
103 return date(
'H:i:s');
123 $month =
null, $day =
null, $year =
null)
141 return date(
'Y-m-d H:i:s', $unix_timestamp);
159 return mktime($arr[
'hour'], $arr[
'minute'], $arr[
'second'], $arr[
'month'], $arr[
'day'], $arr[
'year'], -1);
176 list($arr[
'year'], $arr[
'month'], $arr[
'day'], $arr[
'hour'], $arr[
'minute'], $arr[
'second']) =
177 sscanf($mdb_timestamp,
"%04u-%02u-%02u %02u:%02u:%02u");
date2Mdbstamp($hour=null, $minute=null, $second=null, $month=null, $day=null, $year=null)
convert a date into a MDB2 timestamp
mdbstamp2Unix($mdb_timestamp)
convert a MDB2 timestamp into a unix timestamp
mdbstamp2Date($mdb_timestamp)
convert a MDB2 timestamp into an array containing all values necessary to pass to php's date() functi...
mdbNow()
return the current datetime
unix2Mdbstamp($unix_timestamp)
convert a unix timestamp into a MDB2 timestamp
mdbToday()
return the current date
mdbTime()
return the current time