Current Date & Time Widget

Current Date & Time Widget Install Statistics

11
100%
Today: 11 Yesterday: 0 All-time: 22,420 downloads
Current Date & Time Widget Icon

Try plugin: Current Date & Time Widget

We'll create fresh WordPress site with Current Date & Time Widget installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Current Date & Time Widget

Provides a widget that shows the current date and time given a specified timezone and format.

0


0


0


0


0

updated: 16 years ago
since: 16 years ago
author: Chris Jean

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