Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Format a Unix timestamp
<?php date(string $format, ?int $timestamp = null): string
<?php         if ($this->config->get('github-expose-hostname') === true && 0 === $this->process->execute('hostname', $output)) {

            $note .= ' on ' . trim($output);

        }

        $note .= ' ' . date('Y-m-d Hi');



        $url = 'https://'.$originUrl.'/settings/tokens/new?scopes=&description=' . str_replace('%20', '+', rawurlencode($note));

        $this->io->writeError(sprintf('When working with _public_ GitHub repositories only, head to %s to retrieve a token.', $url));
<?php                     $rateLimit['limit'] = (int) trim($value);

                    break;

                case 'X-RateLimit-Reset':

                    $rateLimit['reset'] = date('Y-m-d H:i:s', (int) trim($value));

                    break;

            }

        }
<?php     public function writeClientSpecToFile($spec)

    {

        fwrite($spec, 'Client: ' . $this->getClient() . PHP_EOL . PHP_EOL);

        fwrite($spec, 'Update: ' . date('Y/m/d H:i:s') . PHP_EOL . PHP_EOL);

        fwrite($spec, 'Access: ' . date('Y/m/d H:i:s') . PHP_EOL);

        fwrite($spec, 'Owner:  ' . $this->getUser() . PHP_EOL . PHP_EOL);

        fwrite($spec, 'Description:' . PHP_EOL);
<?php     {

        fwrite($spec, 'Client: ' . $this->getClient() . PHP_EOL . PHP_EOL);

        fwrite($spec, 'Update: ' . date('Y/m/d H:i:s') . PHP_EOL . PHP_EOL);

        fwrite($spec, 'Access: ' . date('Y/m/d H:i:s') . PHP_EOL);

        fwrite($spec, 'Owner:  ' . $this->getUser() . PHP_EOL . PHP_EOL);

        fwrite($spec, 'Description:' . PHP_EOL);

        fwrite($spec, '  Created by ' . $this->getUser() . ' from composer.' . PHP_EOL . PHP_EOL);