xref: /PHP-7.2/ext/date/tests/idate_basic.phpt (revision 17ccbeec)
1--TEST--
2Test idate() function : basic functionality
3--FILE--
4<?php
5/* Prototype  : int idate(string format [, int timestamp])
6 * Description: Format a local time/date as integer
7 * Source code: ext/date/php_date.c
8 * Alias to functions:
9 */
10
11echo "*** Testing idate() : basic functionality ***\n";
12
13// Initialise all required variables
14$format = 'Y';
15
16// Calling idate() with mandatory arguments
17date_default_timezone_set("Asia/Calcutta");
18var_dump( idate($format) );
19?>
20===DONE===
21--EXPECTF--
22*** Testing idate() : basic functionality ***
23int(%d)
24===DONE===
25