zsh-users
 help / color / mirror / code / Atom feed
* zsh calendar format
@ 2019-05-06  9:20 ` Johan DS
  2019-05-07  8:55   ` Peter Stephenson
  2019-05-07 18:46   ` Johan DS
  0 siblings, 2 replies; 3+ messages in thread
From: Johan DS @ 2019-05-06  9:20 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

Hi
In the classic calendar command (linux) there is something like

03/SunLast summertime

which means:
calendar entry: summertime on the last sunday of march

I can't figure out if there is an equivalent for the calendar in zsh (
zshcalsys)

thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh calendar format
  2019-05-06  9:20 ` zsh calendar format Johan DS
@ 2019-05-07  8:55   ` Peter Stephenson
  2019-05-07 18:46   ` Johan DS
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2019-05-07  8:55 UTC (permalink / raw)
  To: zsh-users

On Mon, 2019-05-06 at 11:20 +0200, Johan DS wrote:
> Hi
> In the classic calendar command (linux) there is something like
> 
> 03/SunLast summertime
> 
> which means:
> calendar entry: summertime on the last sunday of march
> 
> I can't figure out if there is an equivalent for the calendar in zsh (
> zshcalsys)

No, it's based, roughly speaking, around things you can do without too
much work using strptime(), so oddities available in the old calendar
utility aren't handled.

pws


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh calendar format
  2019-05-06  9:20 ` zsh calendar format Johan DS
  2019-05-07  8:55   ` Peter Stephenson
@ 2019-05-07 18:46   ` Johan DS
  1 sibling, 0 replies; 3+ messages in thread
From: Johan DS @ 2019-05-07 18:46 UTC (permalink / raw)
  To: Zsh Users, Pier Paolo Grassi

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

Hello Pier If you do "cal --help" You get some options. Something like "cal
2020" gives you the calendar for the year 2020.
However  "03/SunLast summertime" is used by /usr/bin/*calendar* which has a
config file in the directory ~/.calendar
Examples you can find in the directory /usr/share/calendar

However if you load zshcalsys in zsh calendar is replaced by another
calendar with a different configfile


On Mon, May 6, 2019 at 11:20 AM Johan DS <victor3xray@gmail.com> wrote:

> Hi
> In the classic calendar command (linux) there is something like
>
> 03/SunLast summertime
>
> which means:
> calendar entry: summertime on the last sunday of march
>
> I can't figure out if there is an equivalent for the calendar in zsh (
> zshcalsys)
>
> thanks
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-07 18:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20190506092218epcas2p2a384a46c3f5056e86ba3bea594c6c0aa@epcas2p2.samsung.com>
2019-05-06  9:20 ` zsh calendar format Johan DS
2019-05-07  8:55   ` Peter Stephenson
2019-05-07 18:46   ` Johan DS

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).