src/DateRepetition/DailyDateRepetition.php
public static function newFromTimeString($timeString)
	{
        try {
    		$dateTime = new DateTime($timeString);
        } catch(\Exception $e) {
            throw new InvalidArgumentException('Time string must be valid, see DateTime for documentation');
        }
		return new self($dateTime->format('G'), $dateTime->format('i'));
	}
public static function newFromTimeString($timeString)
	{
        try {
    		$dateTime = new DateTime($timeString);
        } catch(\Exception $e) {
            throw new InvalidArgumentException('Time string must be valid, see DateTime for documentation');
        }
		return new self($dateTime->format('G'), $dateTime->format('i'));
	}
public static function newFromTimeString ( $ timeString ) { try { $ dateTime = new DateTime ( $ timeString ) ; } catch ( \ Exception $ e ) { throw new InvalidArgumentException ( 'Time string must be valid, see DateTime for documentation' ) ; } return new self ( $ dateTime -> format ( 'G' ) , $ dateTime -> format ( 'i' ) ) ; }
Creates new DailyDateRepetition from string readable by DateTime

@param string time string
@return DailyDateRepetition
Creates new DailyDateRepetition from string readable by DateTime