Pluf Framework

Pluf Framework Commit Details


Date:2008-12-03 08:00:02 (16 years 18 days ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:1a7c3236effee77463c4741b9d71cb00756d4cf8
Parents: 1c162797b48b1ea00ea64c2213fca8d447f138d4
Message:Added a formating string without local time conversion.

Changes:

File differences

src/Pluf/Date.php
3838
3939
4040
41
42
43
44
45
46
47
48
49
50
51
52
53
54
4155
4256
4357
return strftime($format, $time);
}
/**
* Get a GM Date in the format YYYY-MM-DD HH:MM:SS and returns a
* string with the given format in GMT.
*
* @param string GMDate
* @param string Format to be given to date ('c')
* @return string Formated GMDate into GMT
*/
public static function gmDateToGmString($gmdate, $format='c')
{
$time = strtotime($gmdate.'Z');
return date($format, $time);
}
/**
* Day compare.
*

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.06827s using 13 queries.