REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.48 KB
Close
/home/godevadmin/www/admin/vendor/aws/Aws/Api/TimestampShape.php
Text
Base64
<?php namespace Aws\Api; /** * Represents a timestamp shape. */ class TimestampShape extends Shape { public function __construct(array $definition, ShapeMap $shapeMap) { $definition['type'] = 'timestamp'; parent::__construct($definition, $shapeMap); } /** * Formats a timestamp value for a service. * * @param mixed $value Value to format * @param string $format Format used to serialize the value * * @return int|string * @throws \UnexpectedValueException if the format is unknown. * @throws \InvalidArgumentException if the value is an unsupported type. */ public static function format($value, $format) { if ($value instanceof \DateTime) { $value = $value->getTimestamp(); } elseif (is_string($value)) { $value = strtotime($value); } elseif (!is_int($value)) { throw new \InvalidArgumentException('Unable to handle the provided' . ' timestamp type: ' . gettype($value)); } switch ($format) { case 'iso8601': return gmdate('Y-m-d\TH:i:s\Z', $value); case 'rfc822': return gmdate('D, d M Y H:i:s \G\M\T', $value); case 'unixTimestamp': return $value; default: throw new \UnexpectedValueException('Unknown timestamp format: ' . $format); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ErrorParser
DIR
-
drwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Parser
DIR
-
drwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Serializer
DIR
-
drwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AbstractModel.php
1.87 KB
lrwxrwxr-x
2024-06-18 20:09:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ApiProvider.php
7.71 KB
lrwxrwxr-x
2024-06-18 20:09:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DateTimeResult.php
3.77 KB
lrwxrwxr-x
2024-06-18 20:09:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DocModel.php
3.21 KB
lrwxrwxr-x
2024-06-18 20:09:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ListShape.php
821 B
lrwxrwxr-x
2024-06-18 20:09:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MapShape.php
1.20 KB
lrwxrwxr-x
2024-06-18 20:09:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Operation.php
2.32 KB
lrwxrwxr-x
2024-06-18 20:09:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Service.php
12.55 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Shape.php
1.78 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ShapeMap.php
1.53 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StructureShape.php
1.72 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TimestampShape.php
1.48 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Validator.php
10.33 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).