$startTime = sprintf("%02d:00", $i % 12) . ($i < 12 ? 'am' : 'pm'); $endTime = sprintf("%02d:00", ($i+1) % 12) . ($i < 11 ? 'am' : 'pm'); // same as $i = 1 < 12
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.