src/Net/AtomTime.php
public static function getTimestamp()
	{
		$curl	= new Net_CURL( self::$url );
		$result	= $curl->exec();
		$status	= $curl->getStatus();
		if( $status['http_code'] != 200 )
			throw new Exception( "Service URL is not reachable." );
		$parts	= explode( "\n", $result );
		$date	= trim( $parts[2] );
		$time	= strtotime( $date );
		return $time;
	}
public static function getTimestamp()
	{
		$curl	= new Net_CURL( self::$url );
		$result	= $curl->exec();
		$status	= $curl->getStatus();
		if( $status['http_code'] != 200 )
			throw new Exception( "Service URL is not reachable." );
		$parts	= explode( "\n", $result );
		$date	= trim( $parts[2] );
		$time	= strtotime( $date );
		return $time;
	}
public static function getTimestamp ( ) { $ curl = new Net_CURL ( self :: $ url ) ; $ result = $ curl -> exec ( ) ; $ status = $ curl -> getStatus ( ) ; if ( $ status [ 'http_code' ] != 200 ) throw new Exception ( "Service URL is not reachable." ) ; $ parts = explode ( "\n" , $ result ) ; $ date = trim ( $ parts [ 2 ] ) ; $ time = strtotime ( $ date ) ; return $ time ; }
Returns timestamp.
@access		public
@static
@return		int
@link		http://www.php.net/time
Returns timestamp .