Linux - date

Example

ISO 8601

Format Instant - String Format (ISO 8601)

date -u +"%Y-%m-%dT%H:%M:%SZ"

In a file name

mv OPatch OPatch.bkp_$(date -u +"%Y-%m-%d.%H:%M")

# or
date -u +"%Y-%m-%d_%H.%M.%S"

Powered by ComboStrap