PHP Classes

PHP World Clock: Display the time in different time zones

Recommend this page to a friend!
  Info   Documentation   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 159 All time: 8,989 This week: 67Up
Version License PHP version Categories
worldclock 1.0.0Custom (specified...5HTML, PHP 5, Time and Date
Description 

Author

This package can display the time in different time zones.

It provides a card to use in Laravel applications that shows on a Web page the current time in one or more world time zones.

The list of time zones that it takes displays the time is configurable by passing an array with the names of those time zones.

Picture of Naif Alshaye
  Performance   Level  
Innovation award
Innovation award
Nominee: 9x

 

Documentation

World Clock

A Laravel Nova card to display world clock

Installation:

You can install the package in to a Laravel app that uses Nova via composer:

composer require naif/world-clock

Usage:

Add the below to app/Providers/NovaServiceProvder.php

  public function card()
  {
      return [
         (new WorldClock())
            ->timezones([
                'Asia/Tokyo',
                'Asia/Dubai',
                'America/new_york',
                'America/los_angeles',
            ]),
      ];
  }

<img src="https://raw.githubusercontent.com/naifalshaye/worldclock/master/screenshots/screenshot.png" width="350">

Format Time ( optional )

Add a different format to the constructor, see http://php.net/manual/en/function.date.php for available formatting options.

For example: 24-hour formatting:

  public function card()
  {
      return [
         (new WorldClock('H:i'))
            ->timezones([
                'Asia/Tokyo',
                'Asia/Dubai',
                'America/new_york',
                'America/los_angeles',
            ]),
      ];
  }

Credits

Abdullah Algethami

Support:

naif@naif.io

https://www.linkedin.com/in/naif

License:

The MIT License (MIT). Please see License File for more information.


Screenshots (1)  
  • screenshots/screenshot.png
  Files folder image Files (15)  
File Role Description
Files folder imagedist (2 directories)
Files folder imageresources (2 directories)
Files folder imageroutes (1 file)
Files folder imagesrc (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file mix-manifest.json Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:159
This week:0
All time:8,989
This week:67Up