PHP DateDiff Function

Σε Εξέλιξη Αναρτήθηκε Jan 25, 2006 Πληρώθηκε κατά την παράδοση
Σε Εξέλιξη Πληρώθηκε κατά την παράδοση

I need a quick php datediff function similar to the one in vbscript. I would like the output of datediff function to be “x days, x hours, x minutes, x seconds”. I want the function to accept two mysql and php DateTime values: I also want a third value that flags whether or not we want to calculate the time portion of the DateTime value.

Example:

$NowDateTime = 2005-12-02 00:00:00;

$FutureDateTme = 2005-12-02 12:40:03;

$TrimTime = False;

DateDiff($FutureDateTme, $NowDateTime, $TrimTime)

I am aware that some code is available out there but I haven’t been able to find a function that does exactly what I need.

This should only take a good php programmer about 20 minutes consequently I only want to pay $10 - $15 dollars.

Thank You

PHP

Ταυτότητα Εργασίας: #41226

Σχετικά με την εργασία

12 προτάσεις Απομακρυσμένη εργασία Ενεργό Jan 27, 2006

Ανατέθηκε στον:

vulture

check PM pls

$30 USD σε 0 μέρες
(4 Αξιολογήσεις)
5.2

12 freelancers κάνουν προσφορές κατά μέσο όρο $30 για αυτή τη δουλειά

maxis

I can supply you with such function with any required output. It can repurn formated string or timestamp ($10)

$30 USD σε 0 μέρες
(27 Αξιολογήσεις)
5.9
roberro

I am confident that I can write this function to satisfy your needs. (For 20$).

$30 USD σε 2 μέρες
(34 Αξιολογήσεις)
5.8
gasparch

I can provide you ready functoin. Please see PM.

$30 USD σε 1 μέρα
(26 Αξιολογήσεις)
5.1
zbronek

Hello, it's very easy for me. I can do it very quick.

$30 USD σε 1 μέρα
(16 Αξιολογήσεις)
4.9
brunobfB

Hi! I can send you this function just in an hour or less. I'm thinking on returning the results as an array with the information

$30 USD σε 0 μέρες
(25 Αξιολογήσεις)
4.9
patir

you should better ask it on php mailing list. don't waste money for simple job like this.

$30 USD σε 0 μέρες
(12 Αξιολογήσεις)
4.7
bloodyveins

hello, $15 for this job. regards,

$30 USD σε 0 μέρες
(28 Αξιολογήσεις)
4.4
EzzatHelal

I have this function and I am using it. I accept $15 for this.

$30 USD σε 1 μέρα
(10 Αξιολογήσεις)
4.4
gobinath2k4

Hi Please check my Private message

$30 USD σε 1 μέρα
(1 Κριτική)
1.0
jomel

Hi, Please check your PM. Thanks and God bless.

$30 USD σε 0 μέρες
(0 Αξιολογήσεις)
0.0
saided24

Please see PM

$30 USD σε 0 μέρες
(0 Αξιολογήσεις)
0.0