Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4143863
TimeRange.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
544 B
Referenced Files
None
Subscribers
None
TimeRange.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 16:59 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
24/57/b739599909d2e17cc44ba0d6ebd7
Default Alt Text
TimeRange.php (544 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment