Untitled - Posted on July Tue 6th 9:46 PM (Never Expires) - Format: php
  1.     $optionsArray = timezone_identifiers_list();
  2.     usort($optionsArray, function($a, $b) {
  3.       $aL =  explode('/', $a);
  4.       $bL =  explode('/', $b);
  5.       if ($aL[0] == $bL[0]){
  6.         $dateTimeA = new DateTime();
  7.         $dateTimeA->setTimeZone(new DateTimeZone($a));
  8.         $dateTimeAH = $dateTimeA->format('H:i');
  9.        
  10.         $dateTimeB = new DateTime();
  11.         $dateTimeB->setTimeZone(new DateTimeZone($b));
  12.         $dateTimeBH = $dateTimeA->format('H:i');
  13.         return ($dateTimeA < $dateTimeB) ? -1 : 1;
  14.       }
  15.       return ($aL[0] < $bL[0]) ? -1 : 1;
  16.     });

New Paste

Paste Options

Recent Pastes

35 days ago

Untitled

43 days ago

Untitled

43 days ago

Untitled

43 days ago

Untitled

43 days ago

Untitled

43 days ago

Untitled

43 days ago

Untitled

393 days ago

Read file

406 days ago

Untitled

406 days ago

Untitled