From c9c5f9edc528d1a4baebe25109d8e8c82d8c421d Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Thu, 6 Oct 2016 12:05:12 +0100 Subject: [PATCH] date.md: another attempt at clarifying the descriptions --- pages/linux/date.md | 8 ++++---- pages/osx/date.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/linux/date.md b/pages/linux/date.md index dcba66c1e5..577450fc2a 100644 --- a/pages/linux/date.md +++ b/pages/linux/date.md @@ -2,18 +2,18 @@ > Set or display the system date. -- Display the date using the default locale: +- Display the current date using the default locale's format: `date +"%c"` -- Display the date in UTC and ISO 8601 format: +- Display the current date in UTC and ISO 8601 format: `date -u +"%Y-%m-%dT%H:%M:%SZ"` -- Display the number of seconds since the unix epoch: +- Display the current date as a Unix timestamp (seconds since the Unix epoch): `date +%s` -- Convert a unix epoch timestamp to a date: +- Display a specific date (represented as a Unix timestamp) using the default format: `date -d @1473305798` diff --git a/pages/osx/date.md b/pages/osx/date.md index ee91c1add0..4d694337f0 100644 --- a/pages/osx/date.md +++ b/pages/osx/date.md @@ -2,18 +2,18 @@ > Set or display the system date. -- Display the date using the default locale: +- Display the current date using the default locale: `date +"%c"` -- Display the date in UTC and ISO 8601 format: +- Display the current date in UTC and ISO 8601 format: `date -u +"%Y-%m-%dT%H:%M:%SZ"` -- Display the number of seconds since the unix epoch: +- Display the current date as a Unix timestamp (seconds since the Unix epoch): `date +%s` -- Perform a reverse conversion from a unix timestamp to a date: +- Display a specific date (represented as a Unix timestamp) using the default format: `date -r 1473305798`