diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
commit | 7327499064ae165468c7440f8571c3e570b58a0b (patch) | |
tree | 4f0d0053e7d25f7064c63070edcbc3af114abed9 /system/helpers/date_helper.php | |
parent | 7539f67a23c8536f892263d8d7ab9448655d8e22 (diff) |
Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
Diffstat (limited to 'system/helpers/date_helper.php')
-rw-r--r-- | system/helpers/date_helper.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php index 24e0b1794..004cfb122 100644 --- a/system/helpers/date_helper.php +++ b/system/helpers/date_helper.php @@ -123,7 +123,7 @@ if (! function_exists('standard_date')) 'DATE_W3C' => '%Y-%m-%dT%H:%i:%s%Q'
);
- if ( ! isset($formats[$fmt]))
+ if (! isset($formats[$fmt]))
{
return FALSE;
}
@@ -152,12 +152,12 @@ if (! function_exists('timespan')) $CI =& get_instance();
$CI->lang->load('date');
- if ( ! is_numeric($seconds))
+ if (! is_numeric($seconds))
{
$seconds = 1;
}
- if ( ! is_numeric($time))
+ if (! is_numeric($time))
{
$time = time();
}
@@ -271,7 +271,7 @@ if (! function_exists('days_in_month')) return 0;
}
- if ( ! is_numeric($year) OR strlen($year) != 4)
+ if (! is_numeric($year) OR strlen($year) != 4)
{
$year = date('Y');
}
@@ -442,7 +442,7 @@ if (! function_exists('human_to_unix')) $datestr = trim($datestr);
$datestr = preg_replace("/\040+/", "\040", $datestr);
- if ( ! ereg("^[0-9]{2,4}\-[0-9]{1,2}\-[0-9]{1,2}\040[0-9]{1,2}:[0-9]{1,2}.*$", $datestr))
+ if (! ereg("^[0-9]{2,4}\-[0-9]{1,2}\-[0-9]{1,2}\040[0-9]{1,2}:[0-9]{1,2}.*$", $datestr))
{
return FALSE;
}
@@ -592,7 +592,7 @@ if (! function_exists('timezones')) if ($tz == 'GMT')
$tz = 'UTC';
- return ( ! isset($zones[$tz])) ? 0 : $zones[$tz];
+ return (! isset($zones[$tz])) ? 0 : $zones[$tz];
}
}
|