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
Mon, Jan 26, 08:02 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3322782
Default Alt Text
SunsetCommand.php (383 B)

Event Timeline