[PHP] Formatting time :/

2007-01-02 Thread Steven Macintyre
Hi all, I am unable to find out how to do this ... or what the format is called bar zulu format I have standard 00:00:00 time stored ... and wish to display it as 00h00 ... has anyone done this with php ... can you point me to right page etc ... What is that format called? Kind Regards,

Re: [PHP] Formatting time :/

2007-01-02 Thread Stut
Steven Macintyre wrote: I am unable to find out how to do this ... or what the format is called bar zulu format I have standard 00:00:00 time stored ... and wish to display it as 00h00 ... has anyone done this with php ... can you point me to right page etc ... What is that format called?

RE: [PHP] Formatting time :/

2007-01-02 Thread Steven Macintyre
] Formatting time :/ Steven Macintyre wrote: I am unable to find out how to do this ... or what the format is called bar zulu format I have standard 00:00:00 time stored ... and wish to display it as 00h00 ... has anyone done this with php ... can you point me to right page etc

Re: [PHP] Formatting time :/

2007-01-02 Thread Richard Lynch
If it is stored in a database, you may want to convert within your query: MySQL: date_format Postgresql: to_char If it's just in a text file, PHP's date() function should do it: http://php.net/date I dunno if there's a nifty constant for the format you want, but you could always mess with mktime

[PHP] Formatting Time

2002-05-15 Thread Devin Atencio
I want to a kewl script that will format time from seconds. I have a script that returns the number of seconds a person has been an employee and I want to format it in human readable format like: 1 year 6 months 14 days, etc. Any help would be appreciated it.

Re: [PHP] Formatting Time

2002-05-15 Thread Miguel Cruz
On Wed, 15 May 2002, Devin Atencio wrote: I want to a kewl script that will format time from seconds. I have a script that returns the number of seconds a person has been an employee and I want to format it in human readable format like: 1 year 6 months 14 days, etc. Say you had 18001

Re: [PHP] Formatting Time

2002-05-15 Thread Analysis Solutions
Devin: I want to a kewl script that will format time from seconds. I have a script that returns the number of seconds a person has been an employee and I want to format it in human readable format like: 1 year 6 months 14 days, etc. Start with the manual: