Current Date & Time Widget

0

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: Provide a means to have the date and time produce

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

Description

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:

  • Provide a means to have the date and time produced match a specific timezone.
  • Enable complete customization over how the date and time is formatted.

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.

Version History

  • 1.0.1 – 2008-06-04 – Basic proof of concept
  • 1.0.2 – 2008-06-12 – Contained plugin code inside a class to prevent namespace collisions. Standardized code with coding style (http://comox.textdrive.com/pipermail/wp-hackers/2006-July/006930.html)
  • 1.0.3 – 2008-07-01 – Added support for PHP 4