{
    "mode": "pydoc",
    "parameter": "date",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/date/json",
    "generated": "2026-06-02T15:49:30Z",
    "sections": [],
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Set or display the system date.",
        "examples": [
            {
                "description": "Display the current date using the default locale's format",
                "command": "date +%c"
            },
            {
                "description": "Display the current date in UTC, using the ISO 8601 format",
                "command": "date {{-u|--utc}} +%Y-%m-%dT%H:%M:%S%Z"
            },
            {
                "description": "Display the current date as a Unix timestamp (seconds since the Unix epoch)",
                "command": "date +%s"
            },
            {
                "description": "Convert a date specified as a Unix timestamp to the default format",
                "command": "date {{-d|--date}} @{{1473305798}}"
            },
            {
                "description": "Convert a given date to the Unix timestamp format",
                "command": "date {{-d|--date}} \"{{2018-09-01 00:00}}\" +%s {{-u|--utc}}"
            },
            {
                "description": "Display the current date using the RFC-3339 format (`YYYY-MM-DD hh:mm:ss TZ`) and specify its precision",
                "command": "date --rfc-3339 {{date|seconds|ns}}"
            },
            {
                "description": "Set the current date using the format `MMDDhhmmYYYY.ss` (`YYYY` and `.ss` are optional)",
                "command": "sudo date {{093023592021.59}}"
            },
            {
                "description": "Display the current ISO week number",
                "command": "date +%V"
            }
        ]
    }
}