class/oledrion_utils.php 1 location
|
@@ 540-547 (lines=8) @@
|
| 537 |
|
* @param string $format |
| 538 |
|
* @return string The date in a human form |
| 539 |
|
*/ |
| 540 |
|
public function SQLDateToHuman($date, $format = 'l') |
| 541 |
|
{ |
| 542 |
|
if ($date != '0000-00-00' && xoops_trim($date) != '') { |
| 543 |
|
return formatTimestamp(strtotime($date), $format); |
| 544 |
|
} else { |
| 545 |
|
return ''; |
| 546 |
|
} |
| 547 |
|
} |
| 548 |
|
|
| 549 |
|
/** |
| 550 |
|
* Convert a timestamp to a Mysql date |
class/utility.php 1 location
|
@@ 683-690 (lines=8) @@
|
| 680 |
|
* @param string $format |
| 681 |
|
* @return string The date in a human form |
| 682 |
|
*/ |
| 683 |
|
public static function SQLDateToHuman($date, $format = 'l') |
| 684 |
|
{ |
| 685 |
|
if ($date != '0000-00-00' && xoops_trim($date) != '') { |
| 686 |
|
return formatTimestamp(strtotime($date), $format); |
| 687 |
|
} else { |
| 688 |
|
return ''; |
| 689 |
|
} |
| 690 |
|
} |
| 691 |
|
|
| 692 |
|
/** |
| 693 |
|
* Convert a timestamp to a Mysql date |