[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-11-2005, 08:54 PM   #1 (permalink)
NamePros Regular
 
dkin69's Avatar
 
Join Date: May 2005
Posts: 358
15.75 NP$ (Donate)

dkin69 has a spectacular aura aboutdkin69 has a spectacular aura about


Finding difference between dates.

Im using mktime to find current time and time in 24 hours. Now, I need to be able to tell the user how much more time is left until the 24 hours are up, so I have this after subtracting the 2 dates.

so say I have this 59246 how can I tell how many more hours minutes and seconds are left until 24 hours have expired?
dkin69 is offline  
Old 05-12-2005, 04:36 AM   #2 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
 
Join Date: Aug 2004
Posts: 3,794
47.60 NP$ (Donate)

stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of


from my understanding it would be 86400-(current time)

is that what you needed, or that actual code
stscac is offline  
Old 05-12-2005, 10:55 AM   #3 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
if you are using mktime to find the value of this precise time and the time in 24 hours the difference will always be 24 hours.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 05-14-2005, 05:35 PM   #4 (permalink)
NamePros Member
 
Join Date: May 2005
Location: Osaka, Japan
Posts: 37
69.00 NP$ (Donate)

df-sean is an unknown quantity at this point


If you haven't checked this out already, you may find it really helpful:
http://php.net/date

There are some great tips for date calculations in the user suggestions.
__________________
:::: *DataFly.Net *::::
Rock-Solid Linux Web Hosting

http://www.datafly.net
df-sean is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding a Good DeaL? Or GOt A a good Deal? Jokez Guy For Sale / Advertising Board 0 11-27-2004 01:31 PM
Finding an Enduser NineASpades Domain Newbies 11 09-18-2004 02:38 AM
value difference on .com.cn & .cn Guppy Domain Name Discussion 4 10-29-2003 02:30 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:14 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85