Files
iris-context/commands/sys/date.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

24 lines
952 B
Go

package sys
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "date",
Description: "Display or set date and time",
Options: []core.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]"},
},
})
}