src/POData/Providers/Metadata/Type/DateTime.php
/**
     * Gets hour from datetime
     * 
     * @param string $dateTime datetime to get the hour from
     * 
     * @return int
     */
Gets hour from datetime

@param string $dateTime datetime to get the hour from

@return int
Gets hour from datetime @param string $dateTime datetime to get the hour from @return int
public static function hour($dateTime)
    {
        $date = new \DateTime($dateTime);
        return $date->format("H");
    }
public static function hour ( $ dateTime ) { $ date = new \ DateTime ( $ dateTime ) ; return $ date -> format ( " H " ) ; }
Gets hour from datetime
Gets hour from datetime