Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4135551
ClockAdapter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
462 B
Referenced Files
None
Subscribers
None
ClockAdapter.php
View Options
<?php
namespace
MediaWiki\Json
;
use
DateTimeImmutable
;
use
Lcobucci\Clock\Clock
;
use
Wikimedia\Timestamp\ConvertibleTimestamp
;
// FIXME upgrade to a more recent lcobucci/jwt version that supports PSR-20, then add support for
// that to ConvertibleTimestamp directly
class
ClockAdapter
implements
Clock
{
public
function
now
():
DateTimeImmutable
{
$ts
=
new
ConvertibleTimestamp
();
return
DateTimeImmutable
::
createFromMutable
(
$ts
->
timestamp
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 13:15 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c8/bf/aaa263275a327f75f3ddd333bc19
Default Alt Text
ClockAdapter.php (462 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment