| Recommend this page to a friend! |
| Info | Documentation | Screenshots | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 159 | All time: 8,989 This week: 67 | ||||
| Version | License | PHP version | Categories | |||
| worldclock 1.0.0 | Custom (specified... | 5 | HTML, PHP 5, Time and Date |
| Description | Author | |
This package can display the time in different time zones. |
A Laravel Nova card to display world clock
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/world-clock
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">
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',
]),
];
}
https://www.linkedin.com/in/naif
The MIT License (MIT). Please see License File for more information.
| Screenshots (1) | ||
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Doc. | Documentation | |||
| Data | Auxiliary data | |||
| / | src |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| |
Class | Class source |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.