Page MenuHomeDevCentral

SunsetCommand.php
No OneTemporary

SunsetCommand.php

<?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

Mime Type
text/x-php
Expires
Tue, Nov 18, 18:06 (6 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3137850
Default Alt Text
SunsetCommand.php (383 B)

Event Timeline