rmat. For example, to represent the time component in a dynamically constructed filename as part of a shell script.<pre class=language-ruby data-lang=ruby style=background-color:#f5f5f5;color:#1f1f1f;><code class=language-ruby data-lang=ruby><span style=color:#7f8989;># same as: date +%F or date -I or date --iso-8601
</span><span>$ date </span><span style=color:#72ab00;>+%</span><span style=color:#5597d6;>Y</span><span style=color:#72ab00;>-%</span><span>m</span><span style=color:#72ab00;>-%</span><span>d
<