Print the current time in ISO 8601 format
Build a paste-ready command, then review its compatibility and effects before running it.
read-onlyno known side effects Compatibility
GNU/LinuxOn macOS use the included BSD-compatible variant.
Operational knowledgereview due 2027-01-19
Requirementsdatedate must be installed and available on PATH.
Version supportdate Current supported releasesVerified for linux, macos using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signals2026-07-23T10:42:18+02:00Representative successful output; values vary with the selected target and system state.
Known errorsdate: command not founddate is missing or is not available on PATH.
Verifydate -IsecondsThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01dateCommandRuns the date stage of this one-liner.
02-IsecondsOptionConfigures date with the -Iseconds option.
Example input
date -Iseconds
Example output
2026-07-23T10:42:18+02:00
Illustrative output — exact values vary by system and data.
Official sources