显示下拉菜单

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

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #5 : test success
Example #6 : test success
Example #7 : test success
Example #8 : test success
Example #9 : test success
Example #10 : test success
Example #11 : test success
Example #12 : test success
Example #13 : test success
Example #14 : test success
Example #15 : test success
Example #1
$input = [
  
'timezone' => 'UTC',
  
=> 'l',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'Saturday',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'timezone' => 'UTC',
  
=> '_SINGLE_QUOTE_l jS \\of F Y h:i:s A_SINGLE_QUOTE_',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'Saturday 1st of July 2000 12:00:00 AM',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
'timezone' => 'UTC',
  
=> 'DATE_RFC2822',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'Sat, 01 Jul 2000 00:00:00 +0000',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
'timezone' => 'UTC',
  
=> 'DATE_ATOM',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '2000-07-01T00:00:00+00:00',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #5
$input = [
  
'timezone' => 'UTC',
  
=> '_SINGLE_QUOTE_l \\t\\h\\e jS_SINGLE_QUOTE_',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'Saturday the 1st',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #6
$input = [
  
'timezone' => 'UTC',
  
=> 'F j, Y, g:i a',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'July 1, 2000, 12:00 am',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #7
$input = [
  
'timezone' => 'UTC',
  
=> 'm.d.y',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '07.01.00',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #8
$input = [
  
'timezone' => 'UTC',
  
=> 'j, n, Y',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '1, 7, 2000',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #9
$input = [
  
'timezone' => 'UTC',
  
=> 'Ymd',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '20000701',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #10
$input = [
  
'timezone' => 'UTC',
  
=> 'h-i-s, j-m-y, it is w Day',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '12-00-00, 1-07-00, 0031 0000 6 Satam00',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #11
$input = [
  
'timezone' => 'UTC',
  
=> '_SINGLE_QUOTE_\\i\\t \\i\\s \\t\\h\\e jS \\d\\a\\y._SINGLE_QUOTE_',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'it is the 1st day.',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #12
$input = [
  
'timezone' => 'UTC',
  
=> 'D M j G:i:s T Y',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'Sat Jul 1 0:00:00 UTC 2000',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #13
$input = [
  
'timezone' => 'UTC',
  
=> '_SINGLE_QUOTE_H:m:s \\m \\i\\s\\ \\m\\o\\n\\t\\h_SINGLE_QUOTE_',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '00:07:00 m is month',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #14
$input = [
  
'timezone' => 'UTC',
  
=> 'H:i:s',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '00:00:00',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #15
$input = [
  
'timezone' => 'UTC',
  
=> 'Y-m-d H:i:s',
  
=> 962409600,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '2000-07-01 00:00:00',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]