Nice Time

Developer

Pv Ledoux

3rd Party (Free)

BSD 3-Clause License

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

This plugin converts a date in relative time. It will output 'now' if the date given is less then 5 seconds ago, 'xx unit ago' will be outputted for longer intervals (where unit will be seconds, minutes, hours, days or weeks). If the date is greater than 4 weeks, it will return the full date formatted with the parameter format.

Syntax

{exp:nice_time date="{entry_date}" format="%d-%m-%Y %H:%i"}
{exp:nice_time date="2012-09-{segment_3}" format="%D, %M %j, %Y" relative="no"}

Parameters

date is required. Can be a string date or a unix timestamp.
format is optional (default: %d-%m-%Y %H:%i)
relative  is optional. Set to “no” to always use format. (Thanks to EpicVoyage)

Nice Time Links

This entry was created April 26, 2012, 1:23 pm.
This entry was last updated May 9, 2012, 2:09 am.

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:

eedfw 05.07.12

eedfw
Rating - {addon_rating_average}

Thanks for this addon. I couldn’t get the Low Nice Date to work so this one was a life saver. My only feature request is localization just as Low does but I can live without that for now :)