PHP » GoLang |
login |
register |
about
|
GoLang DateInterval::__construct
request it (314)
GoLang replacement for PHP's DateInterval::__construct
[edit | history]
DateInterval::__construct(PHP 5 >= 5.3.0, PHP 7) DateInterval::__construct — Creates a new DateInterval object Description
public DateInterval::__construct
( string
$interval_spec
)Creates a new DateInterval object. Parameters
Errors/Exceptions
Throws an Exception when the Examples
Example #1 DateInterval example
<?php The above example will output: object(DateInterval)#1 (8) { ["y"]=> int(2) ["m"]=> int(0) ["d"]=> int(4) ["h"]=> int(6) ["i"]=> int(8) ["s"]=> int(0) ["invert"]=> int(0) ["days"]=> bool(false) } See Also
|
more
Recently updated
more
Most requested
more
Last requests
|