## API Documentation

# Gdata/App/Util.php

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

category
  Zend
copyright
  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
license
  New BSD License
package
  Zend_Gdata
subpackage
  App
version
  $Id: Util.php 23775 2011-03-01 17:25:24Z ralph $

## \Zend_Gdata_App_Util
jump to top

Utility class for static functions needed by Zend_Gdata_App

category
  Zend
copyright
  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
license
  New BSD License
package
  Zend_Gdata
subpackage
  App

### Methods

`findGreatestBoundedValue( integer|null $maximumKey, array $collection ) : void`
static

Find the greatest key that is less than or equal to a given upper bound, and return the value associated with that key.

Parameters

Name | Type | Description
--- | --- | ---
$maximumKey | integer|null | The upper bound for keys. If null, the maxiumum valued key will be found.
$collection | array | An two-dimensional array of key/value pairs to search through.

Throws

Exception | Description
--- | ---
\Zend_Gdata_App_Exception | Thrown if $collection is empty.

Details

returns
  mixed The value corresponding to the located key.

`formatTimestamp( int $timestamp ) : void`
static

Convert timestamp into RFC 3339 date string.

2005-04-19T15:30:00

Parameters

Name | Type | Description
--- | --- | ---
$timestamp | int |

Throws

Exception | Description
--- | ---
\Zend_Gdata_App_InvalidArgumentException |

Documentation was generated by DocBlox 0.13.3.