8000 GitHub - kaythinks/Worldtime: A PHP Library for getting an accurate time for any Global city in the World.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kaythinks/Worldtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kaythinks/Worldtime

This PHP Library helps you get the accurate time for any Global city

There are presently 4 static methods namely;

  • getTime(string $input) --This method returns the time in 12-hour Format

  • getFullTime(string $input) --This method returns the time in 24-hour Format

  • getTimeString(string $input) --This method returns the time as a string in 12-hour Format

  • getFullTimeString(string $input) --This method returns the time as a string in 24-hour Format

To install this package follow the steps below

-- Run composer require kaythinks/worldtime

-- Run composer dump-autoload

-- The library can be used this way for example;

<?php

require_once 'vendor/autoload.php';

use Kaythinks\Worldtime\Worldtime;

echo Worldtime::getTime('Lagos');

About

A PHP Library for getting an accurate time for any Global city in the World.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0