getFormattedTimestamp()

Return the date and the time in format YYYY:MM:DD-hh:mm:ss

Method signature

private function getFormattedTimestamp() 

Example

<?php
require 'vendor/autoload.php';
use CircularProtocol\Api\CircularProtocolAPI;

$circular = new CircularProtocolAPI();

$timestamp = $circular->getFormattedTimestamp();
echo $timestamp;

Result

The result will be an object of type String:

2024:10:09-21:45:00

Last updated