Class TimestampShape
- Aws\Api\AbstractModel implements ArrayAccess
-
Aws\Api\Shape
-
Aws\Api\TimestampShape
- Namespace: Aws\Api
- Located at Api/TimestampShape.php
Represents a timestamp shape.
Methods Summary
- __construct ( array $definition, Aws\Api\ShapeMap $shapeMap )
-
static
format ( mixed $value, string $format )
Formats a timestamp value for a service.
Methods inherited from Aws\Api\Shape
Methods inherited from Aws\Api\AbstractModel
Methods Details
__construct (
array
$definition,
Aws\Api\ShapeMap
$shapeMap
)
Parameters
array | $definition | Service description |
Aws\Api\ShapeMap |
$shapeMap | Shapemap used for creating shapes |
Overrides
static integer|string format ( mixed $value, string $format )
Formats a timestamp value for a service.
Parameters
mixed | $value | Value to format |
string | $format | Format used to serialize the value |
Returns
integer|string |
Exceptions
UnexpectedValueException if the format is unknown. |
InvalidArgumentException if the value is an unsupported type. |