mirror of
https://github.com/php/php-src.git
synced 2024-12-26 18:29:37 +08:00
25 lines
563 B
PHP
25 lines
563 B
PHP
--TEST--
|
|
Test idate() function : basic functionality
|
|
--FILE--
|
|
<?php
|
|
/* Prototype : int idate(string format [, int timestamp])
|
|
* Description: Format a local time/date as integer
|
|
* Source code: ext/date/php_date.c
|
|
* Alias to functions:
|
|
*/
|
|
|
|
echo "*** Testing idate() : basic functionality ***\n";
|
|
|
|
// Initialise all required variables
|
|
$format = 'Y';
|
|
|
|
// Calling idate() with mandatory arguments
|
|
date_default_timezone_set("Asia/Calcutta");
|
|
var_dump( idate($format) );
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
*** Testing idate() : basic functionality ***
|
|
int(%d)
|
|
===DONE===
|