24 lines
740 B
JSON
24 lines
740 B
JSON
{
|
|
"name": "date",
|
|
"section": 1,
|
|
"title": "display or set date and time",
|
|
"synopsis": ["date [OPTION]... [OPERAND]..."],
|
|
"description": "Prints the current date and time, or formats it with a leading +FORMAT string (subset of strftime: %Y %m %d %H %M %S %s %z %a %b %%). Setting the clock is not supported.",
|
|
"options": [
|
|
{ "flag": "-u, --utc", "meaning": "Use UTC for default output and +FORMAT" },
|
|
{ "flag": "+FORMAT", "meaning": "strftime-like format (see description)" }
|
|
],
|
|
"keywords": ["date", "bare-os", "coreutils"],
|
|
"examples": [
|
|
{
|
|
"caption": "RFC-ish output",
|
|
"code": "date"
|
|
},
|
|
{
|
|
"caption": "epoch seconds",
|
|
"code": "date +%s"
|
|
}
|
|
],
|
|
"listCategory": "coreutils"
|
|
}
|