Timespan

Developer

Caddis

3rd Party (Free)

478 downloads (last 90 days)

GNU General Public License v3 Download v1.2.1

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Returns the relative time between a provided time and the current time.

Parameters:

date = '{entry_date}' // Unix timestamp (default EE date format)
show_labels = 'false' // Show the date labels (years, minutes, etc)
show_empty = 'true' // Hide values that equal 0

Usage:

{exp:timespan date="{entry_date}" show_labels="true" show_empty="no"}
The time difference is {timespan:years} {timespan:months} {timespan:days} {timespan:hours}{if '{timespan:minutes}' != ''} and {timespan:minutes}{/if}.
{/exp:timespan}

{exp:timespan date="{entry_date}"}
{if {timespan:past_future} == 'past'}
The entry was created in the past.
{if:else}
The entry is from the future.
{/if}
{/exp:timespan}

Download Timespan

EE Support Downloads Add-On Version Release Date
2.6.0+ Download 1.2.1 Oct 11, 2014

Timespan Links

This entry was created August 23, 2012, 10:00 am.
This entry was last updated October 28, 2014, 2:43 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

1 Review:

FCGRX 04.08.13

FCGRX
Rating - {addon_rating_average}

Lots of problems with this plugin. Unable to get it to determine whether an entry has a future publication date—generates PHP errors. No developer support link here to ask questions….