Lines Matching refs:date

57         '%X' => 'H:i:s', // Preferred time representation based on locale, without the date    Example: 03:59:16 or 15:59:16
61 '%c' => 'D M j H:i:s Y', // Preferred date and time stamp based on locale Example: Tue Feb 5 00:45:10 2009 for February 5, 2009 at 12:45:10 AM
65 '%x' => 'm/d/y', // Preferred date representation based on locale, without the time Example: 02/05/09 for February 5, 2009
72 protected static $date = [
105 'u' => '%s000000', // Microseconds (added in PHP 5.2.2). Note that date() will always generate000000 since it takes an integer parameter, whereas DateTime::format()does support microseconds if DateTime was created with microseconds. Example: 654321
108 'I' => '', // NOT SUPPORTED (capital i) Whether or not the date is in daylight saving time 1 if Daylight Saving Time, 0otherwise.
114 'c' => '', // NOT SUPPORTED ISO 8601 date (added in PHP 5) 2004-02-12T15:19:21+00:00
115 'r' => '%a, %e %b %Y %H:%M:%S %s', // ยป RFC 2822 formatted date Example: Thu, 21 Dec 2000 16:01:07 +0200
120 * Convert a strftime format string to a date format string
127 $date = $strftime;
131 $datekeys = array_keys(self::$date);
132 // create negative lookbehind regex to match all known date chars that are not a strtime pattern now
142 // escape date chars
143 $date = preg_replace($from, $to, $date);
146 /* strftime to date conversion */
148 $date = str_replace(
151 $date
155 return $date;
159 * Convert a date format string to a strftime format string
161 * @param string $date
164 public static function toStrftime($date)
166 /* date to strftime conversion */
169 $from = array_keys(self::$date);
174 $to = array_values(self::$date);
181 $strftime = preg_replace($from, $to, $date);
184 /* unescape date escapes */
186 $datekeys = array_keys(self::$date);