Date of day for next week
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
The following gives me Wednesday of the current week, i.e. yesterday's date.
date -v-wednesday
I need the date of next week's Wednesday.
How can I do this?
shell osx date
add a comment |Â
up vote
2
down vote
favorite
The following gives me Wednesday of the current week, i.e. yesterday's date.
date -v-wednesday
I need the date of next week's Wednesday.
How can I do this?
shell osx date
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
The following gives me Wednesday of the current week, i.e. yesterday's date.
date -v-wednesday
I need the date of next week's Wednesday.
How can I do this?
shell osx date
The following gives me Wednesday of the current week, i.e. yesterday's date.
date -v-wednesday
I need the date of next week's Wednesday.
How can I do this?
shell osx date
asked Jun 21 at 13:07
Jim
38710
38710
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
4
down vote
Simple, change the minus to plus
date -v+wednesday
add a comment |Â
up vote
1
down vote
Almost, but you're not quite right with your description of -wednesday
.
date -v Wednesday
- Wednesday of the current week (past, current, or future)date -v -Wednesday
- last Wednesday (today, or up to six days ago)date -v +Wednesday
- next Wednesday (today, or up to six days in the future)
I notice that for "today" (in my case it's Thursday 21st June 2018), there is no difference in the date for -Thursday
, +Thursday
, or Thursday
; they are all 21st June 2018.
What this means is that it is not possible to get directly to "today" one week in the future. Instead, you have to add one day, and then perform the offset calculation:
date -v +1d -v +Wednesday
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
Simple, change the minus to plus
date -v+wednesday
add a comment |Â
up vote
4
down vote
Simple, change the minus to plus
date -v+wednesday
add a comment |Â
up vote
4
down vote
up vote
4
down vote
Simple, change the minus to plus
date -v+wednesday
Simple, change the minus to plus
date -v+wednesday
answered Jun 21 at 13:13
Joe M
5964
5964
add a comment |Â
add a comment |Â
up vote
1
down vote
Almost, but you're not quite right with your description of -wednesday
.
date -v Wednesday
- Wednesday of the current week (past, current, or future)date -v -Wednesday
- last Wednesday (today, or up to six days ago)date -v +Wednesday
- next Wednesday (today, or up to six days in the future)
I notice that for "today" (in my case it's Thursday 21st June 2018), there is no difference in the date for -Thursday
, +Thursday
, or Thursday
; they are all 21st June 2018.
What this means is that it is not possible to get directly to "today" one week in the future. Instead, you have to add one day, and then perform the offset calculation:
date -v +1d -v +Wednesday
add a comment |Â
up vote
1
down vote
Almost, but you're not quite right with your description of -wednesday
.
date -v Wednesday
- Wednesday of the current week (past, current, or future)date -v -Wednesday
- last Wednesday (today, or up to six days ago)date -v +Wednesday
- next Wednesday (today, or up to six days in the future)
I notice that for "today" (in my case it's Thursday 21st June 2018), there is no difference in the date for -Thursday
, +Thursday
, or Thursday
; they are all 21st June 2018.
What this means is that it is not possible to get directly to "today" one week in the future. Instead, you have to add one day, and then perform the offset calculation:
date -v +1d -v +Wednesday
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Almost, but you're not quite right with your description of -wednesday
.
date -v Wednesday
- Wednesday of the current week (past, current, or future)date -v -Wednesday
- last Wednesday (today, or up to six days ago)date -v +Wednesday
- next Wednesday (today, or up to six days in the future)
I notice that for "today" (in my case it's Thursday 21st June 2018), there is no difference in the date for -Thursday
, +Thursday
, or Thursday
; they are all 21st June 2018.
What this means is that it is not possible to get directly to "today" one week in the future. Instead, you have to add one day, and then perform the offset calculation:
date -v +1d -v +Wednesday
Almost, but you're not quite right with your description of -wednesday
.
date -v Wednesday
- Wednesday of the current week (past, current, or future)date -v -Wednesday
- last Wednesday (today, or up to six days ago)date -v +Wednesday
- next Wednesday (today, or up to six days in the future)
I notice that for "today" (in my case it's Thursday 21st June 2018), there is no difference in the date for -Thursday
, +Thursday
, or Thursday
; they are all 21st June 2018.
What this means is that it is not possible to get directly to "today" one week in the future. Instead, you have to add one day, and then perform the offset calculation:
date -v +1d -v +Wednesday
edited Jun 28 at 22:53
answered Jun 21 at 15:33
roaima
39.2k544105
39.2k544105
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451101%2fdate-of-day-for-next-week%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password