17 lines
234 B
PHP
Executable file
17 lines
234 B
PHP
Executable file
#!/usr/bin/php
|
|
<?php
|
|
|
|
require __DIR__.'/base/block.php';
|
|
|
|
$format = $argv[1] ?? 'd/m/Y';
|
|
|
|
$fullText = date($format);
|
|
|
|
echo block(
|
|
'date_'.$format,
|
|
[
|
|
'full_text' => $fullText,
|
|
'color' => color('date'),
|
|
]
|
|
);
|