Advanced

Is this utility at all useful?

Story: Linux/UNIX Easy date manipulation with yestTotal Replies: 9
Author Content
rht

Oct 13, 2006
8:02 AM EDT
It's main claim to fame seems to be that it can, in one line, determine if today is the last day of the month.

I think this is just as easy:

[ $(date -d "tomorrow" "+%d") -eq 1 ]

dinotrac

Oct 13, 2006
9:51 AM EDT
Does every date command support that? I just tried it on an AIX 5.2 machine to no avail
jdixon

Oct 13, 2006
10:22 AM EDT
> I just tried it on an AIX 5.2 machine to no avail

Show off. :)
tuxchick2

Oct 13, 2006
10:36 AM EDT
AIX is also known as Vale of Pain. Showoff, indeed!
SFN

Oct 13, 2006
11:02 AM EDT
It's not working on my Commodore 128 either.
jdixon

Oct 13, 2006
11:10 AM EDT
> It's not working on my Commodore 128 either.

Hmm, I wonder if it would work on OS-9? Well, I doubt I really want to pull my CoCo 3 out to find out, so I guess I'll never know.
jimf

Oct 13, 2006
11:25 AM EDT
I must commend you all on your efforts to recycle old technology. I'm sure mother nature is pleased :D
dinotrac

Oct 13, 2006
11:37 AM EDT
Hey ... AIX 5.2 ain't old, just painful.
tuxchick2

Oct 13, 2006
11:38 AM EDT
I can't even find the date command on my abacus.
jimf

Oct 13, 2006
11:46 AM EDT
I'm with you TC :)

Post a reply to this thread:

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post