{
  "id": "date",
  "name": "date",
  "description": "Display or set the date and time (BSD/macOS options).",
  "executables": [
    "date"
  ],
  "platforms": [
    "macos"
  ],
  "commands": {
    "format": 1,
    "label": "Print a date",
    "description": "Display a date, optionally in UTC, RFC 2822 format, converted from epoch seconds or adjusted. Setting the system clock is not offered.",
    "quality": "ai-draft",
    "base": "fig:date",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/date.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "utc",
        "label": "UTC",
        "type": "boolean",
        "option": [
          "-u"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "rfc2822",
        "label": "RFC 2822 output",
        "type": "boolean",
        "option": [
          "-R"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "epoch",
        "label": "From epoch seconds",
        "type": "string",
        "option": [
          "-r"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "adjust",
        "label": "Adjust",
        "description": "Adjustment such as +1d or -2H.",
        "type": "string",
        "option": [
          "-v"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "format",
        "label": "Output format",
        "description": "A + followed by a strftime format, e.g. +%Y-%m-%d.",
        "type": "string",
        "position": 0,
        "suggestions": [
          {
            "value": "+%Y-%m-%d",
            "label": "ISO date"
          },
          {
            "value": "+%s",
            "label": "Epoch seconds"
          }
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "print",
        "label": "Print formatted date",
        "fields": [
          "utc",
          "format"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "utc",
          "rfc2822",
          "epoch",
          "adjust",
          "format"
        ]
      }
    ]
  }
}
