BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
DateInterval Class Reference

Public Member Functions

 __construct ($interval_spec)
 
 format ($format)
 

Static Public Member Functions

static createFromDateString ($time)
 

Public Attributes

 $y
 
 $m
 
 $d
 
 $h
 
 $i
 
 $s
 
 $invert
 
 $days
 

Detailed Description

Representation of date interval. A date interval stores either a fixed amount of time (in years, months, days, hours etc) or a relative time string in the format that DateTime's constructor supports. http://php.net/manual/en/class.dateinterval.php

Constructor & Destructor Documentation

DateInterval::__construct (   $interval_spec)

Member Function Documentation

static DateInterval::createFromDateString (   $time)
static

Sets up a DateInterval from the relative parts of the string

Parameters
string$time
Returns
DateInterval http://php.net/manual/en/dateinterval.createfromdatestring.php
DateInterval::format (   $format)

Formats the interval

Parameters
$format
Returns
string http://php.net/manual/en/dateinterval.format.php

The documentation for this class was generated from the following file: