Files
iris-context/commands/sys/date.go
T
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

24 lines
943 B
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "date",
Description: "Display or set date and time",
Options: []spec.Option{
{Name: "-d", Description: "Set the kernel's value for daylight saving time"},
{Name: "-f", Description: "The format with which to parse the new date value"},
{Name: "-j", Description: "Don't try to set the date"},
{Name: "-n", Description: "Only set time on the current machine, instead of all machines in the local group"},
{Name: "-R", Description: "Use RFC 2822 date and time output format"},
{Name: "-r", Description: "Number of seconds since the Epoch (00:00:00 UTC, January 1, 1970)"},
{Name: "-t", Description: "Set the system's value for minutes west of GMT"},
{Name: "-u", Description: "Display or set the date in UTC (Coordinated Universal) time"},
{Name: "-v", Description: "[+|-]val[ymwdHMS]"},
},
})
}