WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Scott Reilly v4.0.1

Blog Time

Display the time according to your blog via an admin toolbar widget, a sidebar widget, and/or a template tag.

Blog Time

The facts

Rating
3.6★ from 8
Active installs
600+
Price
Free
Last updated
29 Jul 2021
Added
Jul 2009
Requires WP
4.6
Tested up to
WP 5.8.15
Downloads
25,663

Our analysis

AI-assisted

Blog Time is a WordPress plugin that adds a dynamic clock to the admin bar, displaying the server time for the blog. It updates automatically and also offers a static mode, which shows a timestamp that can be updated without reloading the page. Additionally, the plugin includes a widget for sidebars that provides similar functionality, allowing users to display either a dynamic clock or a static timestamp.

This plugin is useful for managing time-sensitive posts and actions on your blog. It can help you monitor when to close comments on posts or understand the timing of server-hosted content, especially if the server is in a different timezone.

Best for: This plugin suits bloggers and site administrators who need to manage time-sensitive content.

What it does well

  • Adds a dynamic clock to the admin bar
  • Supports a static timestamp mode
  • Includes a sidebar widget with similar functionality
  • Can be integrated directly into theme templates

Where it falls short

  • Limited information on additional features
  • Directory score indicates potential issues

Verdict

Blog Time provides a straightforward solution for displaying server time on your WordPress site. While it has useful features, its directory score suggests that users should consider potential limitations.

From the developer

Scott Reilly's own description of Blog Time, lightly tidied.

This plugin adds a dynamic, functional clock to the admin bar (at top of all admin pages) to show the server time for the blog. The clock automatically updates as time passes, as you would expect of a digital clock.

This plugin also supports a static mode which puts a timestamp string at the top of all admin pages instead of the dynamic clock. This static admin time widget can be clicked to update the time in-place (without a page reload) to show the new current server time.

Also provided is a “Blog Time” widget providing the same functionality as the admin widget, but for your sidebars. You may also utilize the plugin’s functionality directly within a theme template via use of the template tag c2c_blog_time().

NOTE: For the front-end widget, if the “Use dynamic clock?” configuration option is unchecked, this plugin generates a timestamp and NOT a clock. The time being displayed is the time of the page load, or if clicked, the time when the widget last retrieved the time. It won’t actively increment time on the display. By default the widget displays a dynamic clock that does increment time.

This is most useful to see the server/blog time to judge when a time sensitive post, comment, or action would be dated by the blog (i.e. such as monitoring for when to close comments on a contest post, or just accounting for the server being hosted in a different timezone). Or, when used statically as a timestamp and not a clock, it can indicate/preserve when the page was loaded.

Thanks to Moment.js for the JavaScript date handling library.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

Template Tags

The plugin provides one template tag for use in your theme templates, functions.php, or plugins.

Functions

  • <?php function c2c_blog_time( $time_format = '', $echo = true ) ?>
    Returns and/or displays the formatted time for the site.

Arguments

  • $time_format (string)
    Optional. PHP-style time format string. See https://www.php.net/manual/en/datetime.format.php for more info. Default is ” (which, unless otherwise modified, uses the default time forat: ‘g:i A’).

  • $echo (bool)
    Optional. Echo the template info? Default is true.

Examples

  • <?php // Output the site's current time. c2c_blog_time(); ?>

  • <?php // Retrieve the value for use in code, so don't display/echo it. $site_date = c2c_blog_time( 'M d, Y', false ); ?>

Hooks

Read the full description on the official page →

Tagged as