显示下拉菜单

Test of localtime() 本页面仅提供英文版本。

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test not validated (platform dependant or random result etc.)
Example #1
$input = [
  
'timezone' => 'UTC',
  
'time' => '2000-01-01 12:00:00',
  
=> '$timestamp',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> 0,
      
=> 0,
      
=> 12,
      
=> 1,
      
=> 0,
      
=> 100,
      
=> 6,
      
=> 0,
      
=> 0,
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'timezone' => 'UTC',
  
'time' => '2000-01-01 12:00:00',
  
=> '$timestamp',
  
=> true,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'tm_sec' => 0,
      
'tm_min' => 0,
      
'tm_hour' => 12,
      
'tm_mday' => 1,
      
'tm_mon' => 0,
      
'tm_year' => 100,
      
'tm_wday' => 6,
      
'tm_yday' => 0,
      
'tm_isdst' => 0,
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
'timezone' => 'UTC',
  
'time' => '',
  
=> 946728000,
  
=> true,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'tm_sec' => 0,
      
'tm_min' => 0,
      
'tm_hour' => 12,
      
'tm_mday' => 1,
      
'tm_mon' => 0,
      
'tm_year' => 100,
      
'tm_wday' => 6,
      
'tm_yday' => 0,
      
'tm_isdst' => 0,
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
'timezone' => 'UTC',
  
'time' => '',
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'array' => [
      
=> 27,
      
=> 26,
      
=> 12,
      
=> 25,
      
=> 3,
      
=> 124,
      
=> 4,
      
=> 115,
      
=> 0,
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]