Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #270028

Re: date for week

From "rtnetzlof@windstream.net" <rtnetzlof@windstream.net>
Newsgroups linux.debian.user
Subject Re: date for week
Date 2024-06-11 01:50 +0200
Message-ID <INWVX-21IG-7@gated-at.bofh.it> (permalink)
References <INWCB-21Cc-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


All the format codes are documented in the man page for date.
in particular:

+%a gives a short form, such as Mon
+%A gives full name, e.g. Monday 
+%^a and +%^A as above, but all capital letters.

----- Original Message -----
From: "Jeff Peng" <jeff@tls-mail.com>
To: "debian-user" <debian-user@lists.debian.org>


> While I expect the output should be:

> $ date +%such_a_option
> Tuesday

> or
> $ date +%such_a_option
> Tue

> does date command has this option?

Yes, see above.

-- 
Bob Netzlof a/k/a Sweet Old Bob

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

date for week Jeff Peng <jeff@tls-mail.com> - 2024-06-11 01:30 +0200
  Re: date for week Roberto C. Sánchez <roberto@debian.org> - 2024-06-11 01:30 +0200
    Re: date for week Jeff Peng <jeff@tls-mail.com> - 2024-06-11 01:50 +0200
  Re: date for week Greg Wooledge <greg@wooledge.org> - 2024-06-11 01:50 +0200
    info vs. man (was: Re: date for week) Max Nikulin <manikulin@gmail.com> - 2024-06-11 18:30 +0200
      Re: info vs. man (was: Re: date for week) Greg Wooledge <greg@wooledge.org> - 2024-06-11 20:10 +0200
        Re: info vs. man Max Nikulin <manikulin@gmail.com> - 2024-06-12 18:10 +0200
  Re: date for week "rtnetzlof@windstream.net" <rtnetzlof@windstream.net> - 2024-06-11 01:50 +0200

csiph-web