PHP » GoLang |
login |
register |
about
|
GoLang DatePeriod::__construct
request it (326)
GoLang replacement for PHP's DatePeriod::__construct
[edit | history]
DatePeriod::__construct(PHP 5 >= 5.3.0, PHP 7) DatePeriod::__construct — Creates a new DatePeriod object Description
public DatePeriod::__construct
( DateTimeInterface
$start
, DateInterval $interval
, int $recurrences
[, int $options
] )
public DatePeriod::__construct
( DateTimeInterface
$start
, DateInterval $interval
, DateTimeInterface $end
[, int $options
] )
public DatePeriod::__construct
( string
$isostr
[, int $options
] )Creates a new DatePeriod object. Parameters
Changelog
Examples
Example #1 DatePeriod example
<?php The above example will output: 2012-07-01 2012-07-08 2012-07-15 2012-07-22 2012-07-29
Example #2 DatePeriod example with
<?php The above example will output: 2012-07-08 2012-07-15 2012-07-22 2012-07-29 Notes
Unbound numbers of repetitions as specified by ISO 8601 section 4.5
"Recurring time interval" are not supported, i.e. neither passing
"R/..." as |
more
Recently updated
more
Most requested
more
Last requests
|