MediaWiki REL1_40
Wikimedia\WRStats\TimeRange Class Reference

A time range. More...

Public Member Functions

 __construct ( $start, $end)
 
 getDuration ()
 Get the duration of the time range in seconds.
 

Public Attributes

float int $end
 UNIX end time.
 
float int $start
 UNIX start time.
 

Detailed Description

A time range.

Since
1.39

Definition at line 10 of file TimeRange.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\WRStats\TimeRange::__construct ( $start,
$end )
Access: internal
Parameters
float | int$start
float | int$end

Definition at line 22 of file TimeRange.php.

References Wikimedia\WRStats\TimeRange\$end, and Wikimedia\WRStats\TimeRange\$start.

Member Function Documentation

◆ getDuration()

Wikimedia\WRStats\TimeRange::getDuration ( )

Get the duration of the time range in seconds.

Returns
float|int

Definition at line 32 of file TimeRange.php.

References Wikimedia\WRStats\TimeRange\$start.

Referenced by Wikimedia\WRStats\WRStatsReader\internalGetCount().

Member Data Documentation

◆ $end

float int Wikimedia\WRStats\TimeRange::$end

UNIX end time.

Definition at line 14 of file TimeRange.php.

Referenced by Wikimedia\WRStats\TimeRange\__construct().

◆ $start

float int Wikimedia\WRStats\TimeRange::$start

UNIX start time.

Definition at line 12 of file TimeRange.php.

Referenced by Wikimedia\WRStats\TimeRange\__construct(), and Wikimedia\WRStats\TimeRange\getDuration().


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