PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hi,
I know that s not a huge problem tat all and I really can play with but I was imagining another way to convert a query result given in SECONDS only to a common timestamp like: h: m: s ...
In Action:
I am retrieving data from mysql (the records comes in seconds) - I sum all the results returned, distinctly to every USER in seconds. But, sometimes I have more than one person and I would like to have the total amount, given in TIMESTAMP...any good ideas around?
I have this piece of code working:
I'm not really sure what you're trying to say here, but it seems as though you're having problems with the functions' syntax. Check the date() function for the format syntax.
Ok, he is not looking for a DATE, he is looking to convert, for example, 23452340958024958 seconds into 15years, 5months, 3 weeks and 22days (or what ever it actually works out to be)
So the date() function is of no use.
Hence his mentioning of no timestamp, so stop suggesting he use the date() function!
Jenk wrote:Ok, he is not looking for a DATE, he is looking to convert, for example, 23452340958024958 seconds into 15years, 5months, 3 weeks and 22days (or what ever it actually works out to be)
So the date() function is of no use.
Hence his mentioning of no timestamp, so stop suggesting he use the date() function!
Hi,
Sorry for my delay respond some posts here but at this moment I am on a vocation...although, Jenk is right...I know the time generated by my server is only in SECONDS...thats the way...