Commit e54666aa authored by Chris Lamb's avatar Chris Lamb 💬

_docs/source-date-epoch.md: Clarify that `-r seconds` is for BSDs.

parent 824434bc
Pipeline #49280 passed with stage
in 2 minutes and 37 seconds
...@@ -95,8 +95,7 @@ For GNU systems: ...@@ -95,8 +95,7 @@ For GNU systems:
BUILD_DATE="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)" BUILD_DATE="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)"
``` ```
If you need to support BSD date as well you should fallback to trying ther `-r seconds` timestamp variant:
If you need to also support BSD date as well:
``` ```
DATE_FMT="%Y-%m-%d" DATE_FMT="%Y-%m-%d"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment