Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 156 | All time: 8,995 This week: 164![]() |
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',
]),
];
}
naif@naif.io
https://www.linkedin.com/in/naif
The MIT License (MIT). Please see License File for more information.
Screenshots | ||
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation | ||
![]() ![]() |
Data | Auxiliary data |
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.