| @@ 6622-6638 (lines=17) @@ | ||
| 6619 | $this->data['date'] = null; |
|
| 6620 | } |
|
| 6621 | } |
|
| 6622 | if ($this->data['date']) |
|
| 6623 | { |
|
| 6624 | $date_format = (string) $date_format; |
|
| 6625 | switch ($date_format) |
|
| 6626 | { |
|
| 6627 | case '': |
|
| 6628 | return $this->sanitize($this->data['date']['raw'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 6629 | case 'U': |
|
| 6630 | return $this->data['date']['parsed']; |
|
| 6631 | default: |
|
| 6632 | return date($date_format, $this->data['date']['parsed']); |
|
| 6633 | } |
|
| 6634 | } |
|
| 6635 | else |
|
| 6636 | { |
|
| 6637 | return null; |
|
| 6638 | } |
|
| 6639 | } |
|
| 6640 | ||
| 6641 | public function get_updated_date($date_format = 'j F Y, g:i a') |
|
| @@ 6659-6675 (lines=17) @@ | ||
| 6656 | $this->data['updated'] = null; |
|
| 6657 | } |
|
| 6658 | } |
|
| 6659 | if ($this->data['updated']) |
|
| 6660 | { |
|
| 6661 | $date_format = (string) $date_format; |
|
| 6662 | switch ($date_format) |
|
| 6663 | { |
|
| 6664 | case '': |
|
| 6665 | return $this->sanitize($this->data['updated']['raw'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
| 6666 | case 'U': |
|
| 6667 | return $this->data['updated']['parsed']; |
|
| 6668 | default: |
|
| 6669 | return date($date_format, $this->data['updated']['parsed']); |
|
| 6670 | } |
|
| 6671 | } |
|
| 6672 | else |
|
| 6673 | { |
|
| 6674 | return null; |
|
| 6675 | } |
|
| 6676 | } |
|
| 6677 | ||
| 6678 | public function get_local_date($date_format = '%c') |
|