Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F9503100
SunsetCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
383 B
Referenced Files
None
Subscribers
None
SunsetCommand.php
View Options
<?php
namespace
Keruald\Commands\Tests
;
use
Keruald\Commands\Command
;
use
Keruald\Commands\ExitCode
;
class
SunsetCommand
extends
Command
{
public
function
main
()
:
int
{
$this
->
display
->
out
(
self
::
computeTodaySunsetTime
());
return
ExitCode
::
SUCCESS
;
}
private
static
function
computeTodaySunsetTime
()
{
return
date_sunset
(
time
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 8, 00:20 (15 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681687
Default Alt Text
SunsetCommand.php (383 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment