[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date: next sunday is this sunday?

From: Martin Bernreuther
Subject: date: next sunday is this sunday?
Date: Sun, 23 Sep 2007 20:44:15 +0200
User-agent: KMail/1.9.6 (enterprise 20070904.708012)


if I invoke date, e.g.

~> date
So 23. Sep 20:33:39 CEST 2007

and especially using a relative date
with "next" and a weekday, like

~> date --date="next sunday"
So 23. Sep 00:00:00 CEST 2007

I don't get the next sunday, but this sunday  (today)
on a sunday, whereas it works for every other day.
This was done with
~> date --version
date (GNU coreutils) 6.4

and also with version 5.2.1. For the latter
~> date --date="tomorrow next sunday"
seems to give me the expected result,
but not for 6.4, where this is handled like
"tomorrow" alone.

If this is not a bug, how can I get the *next* sunday?

Martin Bernreuther      address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]