date_difference.php

Category: PHP - Miscellaneous

This function will calculate the difference between two dates and can output it as either a string or an array, indicating the amount of years, months, days, hours, minutes and seconds of difference. The returned result can be either a string or an array.The functions has 2 argument and a third optional one. dateDifference($date1, $date2, $output); The first two arguments are the two dates, the third (optional) one allows you to select the kind of output you want. By default this is a string in the form of x years, x monhts, xdays and x hours, x minutes, xseconds. But it's also possible to have the function return an array; this can be either a normal array (0=>x, 1=>x, 2=>x, etc.), or an associative array ("year"=>x, "month"=>", etc.) The function will always calculate a positive difference, regardless of the order in which you pass the dates. Date: 21 May, 2012


Dates Difference - Dates Calculator - Time Difference - Time - Date - Difference

Homepage: http://devshed.excudo.net/

Developer: devshed.excudo.net

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Tigra Form Validator is free JavaScript component performing client side form validation.

developer Developer: Softcomplex Inc.
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


Mantis Effort is a freeware open source project.

developer Developer: Viktor Kruglikov
license License: GNU General Public License (GPL)
operating systems Operating System: All


Arianne is a multiplayer online engine to develop turn based and real time games providing a simple way of creating the game server rules and clients like Stendhal.

developer Developer: arianne.sourceforge.net
license License: GNU General Public License (GPL)
operating systems Operating System: 32-bit MS Windows (95/98), All 32-bit MS Windows (95/98/NT/2000/XP), All POSIX (Linux/BSD/UNIX-like OSes), Linux, OS X


Real-time player and clan rankings and statistics for Half-Life.

developer Developer: HLstats
license License: GNU General Public License (GPL)
operating systems Operating System: All POSIX (Linux/BSD/UNIX-like OSes), OS Independent (Written in an interpreted language), Linux


Ogrian Carpet is an outdoor First Person Shooter game with Real Time Strategy elements, inspired by the game 'Magic Carpet,' using Ogre3D as the renderer.

developer Developer: ogrian
license License: GNU General Public License (GPL)
operating systems Operating System: All 32-bit MS Windows (95/98/NT/2000/XP)


Metal Warriors is mix of a first person action and a real time strategy game.

developer Developer: metalwarriors
license License: GNU General Public License (GPL)
operating systems Operating System: Linux, OS X


Add a unique board with lots of world time clocks to your website.

developer Developer: Peter Gehrig
license License: Freeware
operating systems Operating System: all


Are you a Star Trek fan.

developer Developer: javascriptkit.com
license License: Freeware
operating systems Operating System: All


WBCalendar is a web based event calendar written in JAVA and uses a mysql database backend, for use with Apache, MySQL and Tomcat.

developer Developer: liqua.com
license License: Freeware
operating systems Operating System: All