odata/library/ODataProducer/Providers/Metadata/Type/DateTime.php
/**
     * Gets second from datetime
     * 
     * @param string $dateTime datetime to get the second from
     * 
     * @return int
     */
Gets second from datetime

@param string $dateTime datetime to get the second from

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