Changeset 23022 for branches/version-2_13-dev/data/module/MDB2/Date.php
- Timestamp:
- 2013/08/02 13:22:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/module/MDB2/Date.php
r20119 r23022 43 43 // +----------------------------------------------------------------------+ 44 44 // 45 // $Id: Date.php ,v 1.10 2006/03/01 12:15:32 lsmith Exp$45 // $Id: Date.php 327316 2012-08-27 15:17:02Z danielc $ 46 46 // 47 47 … … 71 71 * @access public 72 72 */ 73 function mdbNow()73 public static function mdbNow() 74 74 { 75 75 return date('Y-m-d H:i:s'); … … 85 85 * @access public 86 86 */ 87 function mdbToday()87 public static function mdbToday() 88 88 { 89 89 return date('Y-m-d'); … … 99 99 * @access public 100 100 */ 101 function mdbTime()101 public static function mdbTime() 102 102 { 103 103 return date('H:i:s'); … … 120 120 * @access public 121 121 */ 122 function date2Mdbstamp($hour = null, $minute = null, $second = null,122 public static function date2Mdbstamp($hour = null, $minute = null, $second = null, 123 123 $month = null, $day = null, $year = null) 124 124 { … … 137 137 * @access public 138 138 */ 139 function unix2Mdbstamp($unix_timestamp)139 public static function unix2Mdbstamp($unix_timestamp) 140 140 { 141 141 return date('Y-m-d H:i:s', $unix_timestamp); … … 153 153 * @access public 154 154 */ 155 function mdbstamp2Unix($mdb_timestamp)155 public static function mdbstamp2Unix($mdb_timestamp) 156 156 { 157 157 $arr = MDB2_Date::mdbstamp2Date($mdb_timestamp); … … 172 172 * @access public 173 173 */ 174 function mdbstamp2Date($mdb_timestamp)174 public static function mdbstamp2Date($mdb_timestamp) 175 175 { 176 176 list($arr['year'], $arr['month'], $arr['day'], $arr['hour'], $arr['minute'], $arr['second']) =
Note: See TracChangeset
for help on using the changeset viewer.
