|
@@ -28,6 +28,20 @@ if(!function_exists('friendly_date_time')) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+if(!function_exists('friendly_month')) {
|
|
|
|
+ function friendly_month($value) {
|
|
|
|
+ if(!$value || empty($value)) return "-";
|
|
|
|
+ try {
|
|
|
|
+ $result = strtotime($value);
|
|
|
|
+ $result = date("M o", $result);
|
|
|
|
+ return $result;
|
|
|
|
+ }
|
|
|
|
+ catch (Exception $e) {
|
|
|
|
+ return $value;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
if(!function_exists('time_in_minsec')) {
|
|
if(!function_exists('time_in_minsec')) {
|
|
function time_in_minsec($value, $default = '0s') {
|
|
function time_in_minsec($value, $default = '0s') {
|
|
if(!$value || empty($value)) return $default;
|
|
if(!$value || empty($value)) return $default;
|