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

Event Timeline