Lines Matching refs:strftime
21 protected static $strftime = [
120 * Convert a strftime format string to a date format string
122 * @param string $strftime
125 public static function toDate($strftime)
127 $date = $strftime;
129 /* All characters that are not strftime placeholders need to be escaped */
146 /* strftime to date conversion */
149 array_keys(self::$strftime),
150 array_values(self::$strftime),
159 * Convert a date format string to a strftime format string
166 /* date to strftime conversion */
181 $strftime = preg_replace($from, $to, $date);
191 $strftime = preg_replace($from, $datekeys, $strftime);
194 return $strftime;