Page MenuHomeWickedGov Phorge

TimeRange.php
No OneTemporary

Size
544 B
Referenced Files
None
Subscribers
None

TimeRange.php

<?php
namespace Wikimedia\WRStats;
/**
* A time range
*
* @since 1.39
*/
class TimeRange {
/** @var float|int UNIX start time */
public $start;
/** @var float|int UNIX end time */
public $end;
/**
* @internal
*
* @param float|int $start
* @param float|int $end
*/
public function __construct( $start, $end ) {
$this->start = $start;
$this->end = $end;
}
/**
* Get the duration of the time range in seconds.
*
* @return float|int
*/
public function getDuration() {
return $this->end - $this->start;
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Jul 3, 17:10 (11 h, 41 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0c/b7/7c0f2c0bcd20fd762b8c0483cdce
Default Alt Text
TimeRange.php (544 B)

Event Timeline