Provides a widget that shows the current date and time given a specified timezone and format.
This is a fairly simple plugin used to display the date and time in any widget-enabled location.
There were two goals for this plugin:
I think that I’ve done a fairly good job of meeting those goals. Admittedly, setting either field is fairly user-unfriendly. The timezone specified must match PHP’s List of Supported Timezones. The date and time format has the same requirements as the format parameter of PHP’s date() function (for obvious reasons since the defined format is actually passed directly to the date function in the code 🙂 ).
If this plugin gets enough attention and use, I’ll find ways of easing the use. I think a series of drop-downs would make selecting the options easier, so that would be the option used if people are interested. If you happen to be one of those interested people, please send me a message on our contact page.
/wp-content/plugins/
directoryYou can find all the supported timezones on PHP’s List of Supported Timezones. Click on the link representing the region your located in and then find the matching timezone. The timezone you specify must exactly match one of the listed timezones.
Format allows you to define your own customized date and time output format.
The format used for the date and time is the same format used by PHP’s date() function. This format allows you to create date and time output that is extremely flexible and should meet most everyone’s needs.
Examples:
As you can see, the format may be a bit confusing at first, but it is very capable of allowing you to specify just how you’d like to display the date and time.