• I have this code:
    <?php echo human_time_diff(get_main_detail('auction_ends', $pid), current_time('timestamp')) . ' to go!'; ?>
    It gives me the difference in time between auction_ends and the normal time. Which is exactly what i need, but i need the out put to be in days, and hours, and if it is possible even in seconds.

    I think, somehow there is a code that gives the output in hours..
    How can i change this.

    The output of acutons_ends is:
    <?php echo date('d-m-Y H:i', get_main_detail('auction_ends', $pid)); ?>
    21-05-2010 20:29

    How can i make the first code output this as a difference in time?

    Thanks everyone!!

  • The topic ‘difference in time??’ is closed to new replies.