Jump to content
php.lv forumi

Problēmas ar pulksteni


Jānis S

Recommended Posts

http://php.lv/f/index.php?showtopic=4438

 

jeb

 

if (intHours == 0) { 
  hours = "12:"; 
  ap = "am."; 
  } else if (intHours < 12) { 
  hours = intHours+":"; 
  ap = "am."; 
  } else if (intHours == 12) { 
  hours = "12:"; 
  ap = "pm."; 
  } else { 
  intHours = intHours - 12 
  hours = intHours + ":"; 
  ap = "pm."; 
  }

 

aizvieto ar

 

hours = intHours + ':';
ap = '';

 

P.S. Interesants tev page.php fails :P parse kļūdu nemet laukā? :LOL:

Edited by GedroX
Link to comment
Share on other sites

×
×
  • Create New...