mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
For date
, move help strings to .md
file (#4458)
This commit is contained in:
parent
f75c427b96
commit
5449282a1a
2 changed files with 13 additions and 5 deletions
10
src/uu/date/date.md
Normal file
10
src/uu/date/date.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<!-- spell-checker:ignore Dhhmm -->
|
||||||
|
|
||||||
|
# date
|
||||||
|
|
||||||
|
```
|
||||||
|
date [OPTION]... [+FORMAT]...
|
||||||
|
date [OPTION]... [MMDDhhmm[[CC]YY][.ss]]
|
||||||
|
```
|
||||||
|
|
||||||
|
Print or set the system date and time
|
|
@ -22,7 +22,7 @@ use uucore::display::Quotable;
|
||||||
#[cfg(not(any(target_os = "macos", target_os = "redox")))]
|
#[cfg(not(any(target_os = "macos", target_os = "redox")))]
|
||||||
use uucore::error::FromIo;
|
use uucore::error::FromIo;
|
||||||
use uucore::error::{UResult, USimpleError};
|
use uucore::error::{UResult, USimpleError};
|
||||||
use uucore::{format_usage, show_error};
|
use uucore::{format_usage, help_about, help_usage, show_error};
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
use windows_sys::Win32::{Foundation::SYSTEMTIME, System::SystemInformation::SetSystemTime};
|
use windows_sys::Win32::{Foundation::SYSTEMTIME, System::SystemInformation::SetSystemTime};
|
||||||
|
|
||||||
|
@ -36,10 +36,8 @@ const MINUTE: &str = "minute";
|
||||||
const SECOND: &str = "second";
|
const SECOND: &str = "second";
|
||||||
const NS: &str = "ns";
|
const NS: &str = "ns";
|
||||||
|
|
||||||
const ABOUT: &str = "Print or set the system date and time";
|
const ABOUT: &str = help_about!("date.md");
|
||||||
const USAGE: &str = "\
|
const USAGE: &str = help_usage!("date.md");
|
||||||
{} [OPTION]... [+FORMAT]...
|
|
||||||
{} [OPTION]... [MMDDhhmm[[CC]YY][.ss]]";
|
|
||||||
|
|
||||||
const OPT_DATE: &str = "date";
|
const OPT_DATE: &str = "date";
|
||||||
const OPT_FORMAT: &str = "format";
|
const OPT_FORMAT: &str = "format";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue