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


Groups > linux.debian.user > #270025

Re: date for week

From Roberto C. Sánchez <roberto@debian.org>
Newsgroups linux.debian.user
Subject Re: date for week
Date 2024-06-11 01:30 +0200
Message-ID <INWCB-21Cc-9@gated-at.bofh.it> (permalink)
References <INWCB-21Cc-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jun 11, 2024 at 07:19:42AM +0800, Jeff Peng wrote:
> Hello,
> 
> I run the folllowing command,
> 
> $ date +%w
> 2
> 
> 
> While I expect the output should be:
> 
> $ date +%such_a_option
> Tuesday
> 
> or
> $ date +%such_a_option
> Tue
> 
> does date command has this option?
> 
> Thanks.
> 

You probably want:

$ date +%a
Mon
$ date +%A
Monday

-- 
Roberto C. Sánchez

Back to linux.debian.user | Previous | Next — Previous in thread | Next 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