Title: difference in time??
Last modified: August 19, 2016

---

# difference in time??

 *  [daand](https://wordpress.org/support/users/daand/)
 * (@daand)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/difference-in-time/)
 * 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.

 * 0 replies
 * 1 participant
 * Last reply from: [daand](https://wordpress.org/support/users/daand/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/difference-in-time/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
