date_diff Smarty Function PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: date_diff_2118236252008.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: PHP
  • Price:Other Free / Open So
  • Company: Matt DeKok (View more)

date_diff Smarty Function script description:




Publisher review:
This is a Smarty Function file that can be installed into your plugins for smarty to provide the capability of calculating the time between two dates in either minutes, days, weeks, and years. This is a Smarty Function file that can be installed into your plugins for smarty to provide the capability of calculating the time between two dates in either minutes, days, weeks, and years.

Input
- date1 = "mm/dd/yyyy" or "yyyy/mm/dd" or "yyyy-mm-dd"
- date2 = "mm/dd/yyyy" or "yyyy/mm/dd" or "yyyy-mm-dd" or $smarty.now
- assign = name of variable to assign difference to
- interval = "days" (default), "weeks", "years"
Examples
- {date_diff date1="5/12/2003" date2=$smarty.now interval="weeks"}
- {date_diff date1="5/12/2003" date2="5/10/2008" assign="diff"}{$diff}
date_diff Smarty Function is a PHP script for Snippets scripts design by Matt DeKok. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5