Welcome Guest, Not a member yet? Register   Sign In
get_dir_file_info('path/to/directory/') information
#2

[eluser]fesweb[/eluser]
That date is a php/unix timestamp, and there are lots of options for dealing with date formatting.

- You can load the CI Date helper and then use the unix_to_human() function.

- Or learn how to format dates using php date(). Simple example:
Code:
echo date('m/d/Y'); // would print today's date as 10/30/2008

// if you pass it your date variable, see what you get
$my_unix_date = $file_info['date'];
echo date('m/d/Y', $my_unix_date);


Messages In This Thread
get_dir_file_info('path/to/directory/') information - by El Forum - 10-30-2008, 07:52 PM
get_dir_file_info('path/to/directory/') information - by El Forum - 10-30-2008, 09:13 PM
get_dir_file_info('path/to/directory/') information - by El Forum - 10-30-2008, 09:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB