PHP Classes

File: src/helpers/getDateFromTimestamp.php

Recommend this page to a friend!
  Classes of Adão Pedro   PHP OpenSSL Proxy   src/helpers/getDateFromTimestamp.php   Download  
File: src/helpers/getDateFromTimestamp.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP OpenSSL Proxy
Manage certificates and encrypt data using OpenSSL
Author: By
Last change:
Date: 2 years ago
Size: 491 bytes
 

Contents

Class file image Download
<?php

  
/*
    * This file is part of the php-openssl-proxy.
    *
    * (c) Adão Pedro <adao.pedro16@gmail.com>
    *
    * For the full copyright and license information, please view the LICENSE
    * file that was distributed with this source code.
    */

    /**
     * Generates a friendly and readable date from a timestamp.
     * Note: ts => Timestamp
     */
   
function getDateFromTimestamp(int $ts, string $format = "d-m-Y"): string {
        return
date($format, $ts);
    }