RE: [PHP] Need help with formatting time

2001-07-17 Thread Jack Dempsey
]] Sent: Tuesday, July 17, 2001 5:11 PM To: Jack Dempsey Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Need help with formatting time Jack Dempsey pressed the little lettered thingies in this order... > $hours = $time / 60; > $minutes = $time % 60; > > if($hours >= 12){ > $meridian = &#x

RE: [PHP] Need help with formatting time

2001-07-17 Thread scott [gts]
, July 17, 2001 3:53 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [PHP] Need help with formatting time > > > Hello and thank you. > > I'm trying to find a function(method) or existing > code taht takes the number of minutes that have passed >

RE: [PHP] Need help with formatting time

2001-07-17 Thread Christopher Ostmo
Jack Dempsey pressed the little lettered thingies in this order... > $hours = $time / 60; > $minutes = $time % 60; > > if($hours >= 12){ > $meridian = 'pm'; > $hours -= 12; > } > else{$meridian = 'am';} > if($hours == 0){$hour = '12';} > > echo "$hours:$minutes$meridian"; > > try som

Re: [PHP] Need help with formatting time

2001-07-17 Thread Rasmus Lerdorf
That's rather simple: echo date("H:i:s",mktime(0,$minutes,0)); -Rasmus On Tue, 17 Jul 2001, John Holcomb wrote: > Hello and thank you. > > I'm trying to find a function(method) or existing > code taht takes the number of minutes that have passed > in a day and returns the time of the day.

RE: [PHP] Need help with formatting time

2001-07-17 Thread Jack Dempsey
ed it, but it should be close... -Original Message- From: John Holcomb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 3:53 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] Need help with formatting time Hello and thank you. I'm trying to find a function(method) o

Re: [PHP] Need help with formatting time

2001-07-17 Thread Christopher Ostmo
John Holcomb pressed the little lettered thingies in this order... > Hello and thank you. > > I'm trying to find a function(method) or existing > code taht takes the number of minutes that have passed > in a day and returns the time of the day. For > example: > > 780 minutes == 1pm, > 0 mi

Re: [PHP] Need help with formatting time

2001-07-17 Thread Jason Bell
ly 17, 2001 12:53 PM Subject: [PHP] Need help with formatting time > Hello and thank you. > > I'm trying to find a function(method) or existing > code taht takes the number of minutes that have passed > in a day and returns the time of the day. For > example: > &

[PHP] Need help with formatting time

2001-07-17 Thread John Holcomb
Hello and thank you. I'm trying to find a function(method) or existing code taht takes the number of minutes that have passed in a day and returns the time of the day. For example: 780 minutes == 1pm, 0 minutes == 12am, etc,etc. so I'm looking for code that when you enter the number o