Example #1
0
 /**
  * Returns a unix timestamp from a formatted date time string.
  *
  * @since   0.0.1
  *
  * @access  protected
  * @static
  * @param   string  $formatted  Date time string to use.
  * @return  int     Unix timestamp.
  */
 protected static function getTimestampFromFormat($formatted)
 {
     if (!is_numeric($formatted)) {
         $dt = new self($formatted);
         return $dt->getTimestamp();
     }
     return $formatted;
 }