Changeset 455 for trunk/Common/Global.php
- Timestamp:
- Oct 30, 2012, 6:51:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r452 r455 277 277 } 278 278 279 function MysqlDateTimeToTime($Time) 280 { 281 $Parts = explode(' ', $Time); 279 function MysqlDateTimeToTime($DateTime) 280 { 281 if($DateTime == '') return(0); 282 $Parts = explode(' ', $DateTime); 282 283 $DateParts = explode('-', $Parts[0]); 283 284 $TimeParts = explode(':', $Parts[1]); … … 286 287 } 287 288 288 function MysqlDateToTime($Time) 289 { 290 return(MysqlDateTimeToTime($Time.' 0:0:0')); 289 function MysqlDateToTime($Date) 290 { 291 if($Date == '') return(0); 292 return(MysqlDateTimeToTime($Date.' 0:0:0')); 291 293 } 292 294 293 295 function MysqlTimeToTime($Time) 294 296 { 297 if($Time == '') return(0); 295 298 return(MysqlDateTimeToTime('0000-00-00 '.$Time)); 296 299 }
Note:
See TracChangeset
for help on using the changeset viewer.