source: src/router/php7/ext/date/tests/date_interval_format.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 402 bytes
Line 
1--TEST--
2Test date_interval_format() function : basic functionality
3--CREDITS--
4Jean Carlo Machado <contato@jeancarlomachado.com.br>
5--INI--
6date.timezone=UTC
7--FILE--
8<?php
9
10$interval = new DateInterval('P2Y4DT6H8M');
11echo date_interval_format($interval, '%d days');
12
13echo PHP_EOL;
14
15$interval = new DateInterval('P32D');
16echo date_interval_format($interval, '%d days');
17
18?>
19--EXPECTF--
204 days
2132 days
Note: See TracBrowser for help on using the repository browser.