summaryrefslogtreecommitdiff
path: root/ext/date/tests/idate_basic.phpt
blob: 944f29f5b19c78e6d62397676af63bd41dcda63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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===