MediaWiki
master
TimeRange.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Wikimedia\WRStats
;
4
10
class
TimeRange
{
12
public
$start
;
14
public
$end
;
15
22
public
function
__construct
(
$start
,
$end
) {
23
$this->start =
$start
;
24
$this->end =
$end
;
25
}
26
32
public
function
getDuration
() {
33
return
$this->end -
$this->start
;
34
}
35
}
Wikimedia\WRStats\TimeRange
A time range.
Definition
TimeRange.php:10
Wikimedia\WRStats\TimeRange\__construct
__construct( $start, $end)
Definition
TimeRange.php:22
Wikimedia\WRStats\TimeRange\getDuration
getDuration()
Get the duration of the time range in seconds.
Definition
TimeRange.php:32
Wikimedia\WRStats\TimeRange\$start
float int $start
UNIX start time.
Definition
TimeRange.php:12
Wikimedia\WRStats\TimeRange\$end
float int $end
UNIX end time.
Definition
TimeRange.php:14
Wikimedia\WRStats
Definition
ArrayStatsStore.php:3
includes
libs
WRStats
TimeRange.php
Generated on Tue Dec 3 2024 15:24:40 for MediaWiki by
1.10.0