Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2750799
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
Fri, Jul 3, 17:10 (12 h, 56 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0c/b7/7c0f2c0bcd20fd762b8c0483cdce
Default Alt Text
TimeRange.php (544 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment