Link to home
Start Free TrialLog in
Avatar of cookiejest
cookiejest

asked on

ebay style countdown php function

Hi there, i am looking for a prebuilt php function that displays the time left or time since a mysql time that is passed to it. In terms of days, hours and mins only.

for example a time 2 weeks 4 hours and 32 mins in the future would output:

14d 4h 32m

and so on... This should be pretty simple but im restrained for time so any prebuilt functions provided would be great!




that would be great thanks!
ASKER CERTIFIED SOLUTION
Avatar of BrianMM
BrianMM
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cookiejest
cookiejest

ASKER

thanks both solutions were good!