CAL "command" for DOS/Win?

P

Phred

G'day mates,

ISTR that Unix has a "cal" command that will do things like print out
a calendar for a given month/year, tell you the day of a given date,
and similar essential or trivial detail (depending on your needs).

So the question is, is such a thing available for DOS/Windows?

A command line implementation would be neat; but a more elaborate
creation would not be rejected if it's capable and accurate and does
things nicely. (CL output does tend to be rather crude at best. :)

Thanks for your time.


Cheers, Phred.
 
M

Mark R. Blain

Try http://gnuwin32.sf.net or Cygwin (full UNIX-like tools for Windows).

Dave Navarro's 'dcal' is not as flexible as 'cal', but still handy,
and he has a nice site: http://www.cmdtools.com/

For a true unix-style 'cal', get the 'cygutils' package from either of
the sites CM mentioned. GnuWin32 utils are standalone, Cygwin utils
share a common file CYGWIN1.DLL that must be acquired as well.
 
J

John Smith

In aus.computers Phred said:
G'day mates,

ISTR that Unix has a "cal" command that will do things like print out
a calendar for a given month/year, tell you the day of a given date,
and similar essential or trivial detail (depending on your needs).

So the question is, is such a thing available for DOS/Windows?

A command line implementation would be neat; but a more elaborate
creation would not be rejected if it's capable and accurate and does
things nicely. (CL output does tend to be rather crude at best. :)

sure, there is both.

cygwin or other system for compiling unix source for dos/windows , will provide
cal.exe

There are also replacements for the Windows clock/calander,
so that it provides a calaneder service
not just a 'change the system date service' (which is prone to causing trouble
with applications , and email/news you post , for obvious reasons ! )
 
P

Phred

Perhaps the cal.exe program Ben Ritchey has listed on his website at
http://cmech.port5.com/ is what you are looking for.

Thanks for your interest, Joe, but I'm afraid cal.exe is a bit
limited for what I want.
<quoting http://cmech.port5.com/>
Cal.Exe will display a small but concise Calendar of the current month
with today hilighted
</quoting>

I was actually looking at something for past/future dates etc.
Initially came about due to discussion of the *day* various events
occurred in the past rather than just the date that you're taught at
school. :)
(e-mail address removed) (Phred) wrote in message


Cheers, Phred.
 
P

Phred

Dave Navarro's 'dcal' is not as flexible as 'cal', but still handy,
and he has a nice site: http://www.cmdtools.com/

For a true unix-style 'cal', get the 'cygutils' package from either of
the sites CM mentioned. GnuWin32 utils are standalone, Cygwin utils
share a common file CYGWIN1.DLL that must be acquired as well.

Thanks guys for your various responses. I'll try dcal.zip (and some
of his other stuff -- damn good site) and will look into the Cygwin
utils when I get a bit more time. (Make that if I ... :)


Cheers, Phred.
 
T

troppo19

Thanks for your interest, Joe, but I'm afraid cal.exe is a bit
limited for what I want.
I was actually looking at something for past/future dates etc.
Initially came about due to discussion of the *day* various events
occurred in the past rather than just the date that you're taught at
school. :)
I know the one you mean. "Cal 2004" will produce a screen display for 12
months, and you can specify any year. You can also 'pipe' output to file.
Port of the Unix version to DOS.
I think it was a 'com' rather than 'exe'. Would need to run in a DOS box.
I had it on an old machine that died .... if I can find it I'll repost here.
...
 
T

troppo19

I know the one you mean. "Cal 2004" will produce a screen display for 12
months, and you can specify any year. You can also 'pipe' output to file.
Port of the Unix version to DOS.
I think it was a 'com' rather than 'exe'. Would need to run in a DOS box.
I had it on an old machine that died .... if I can find it I'll repost here.
...
It's at
http://garbo.uwasa.fi/pc/unix.html
cal_gb.zip
only this version doesn't seem to pipe ...
 
J

John Smith

In aus.computers Phred said:
Thanks for your interest, Joe, but I'm afraid cal.exe is a bit
limited for what I want.
<quoting http://cmech.port5.com/>
Cal.Exe will display a small but concise Calendar of the current month
with today hilighted
</quoting>

I was actually looking at something for past/future dates etc.
Initially came about due to discussion of the *day* various events
occurred in the past rather than just the date that you're taught at
school. :)


The windows one I have used is 'tclockex'


Visit the TClockEx home page at:
http://users.iafrica.com/d/da/dalen
 
P

Phred

Will an html page suffice?
I have something if so.

You do tend to play things close to your chest. :)
[Also, your newsreader put your sig in the wrong place, so the rest of
this topic has vanished.]

Cheers, Phred.
 
R

Rod

Thanks for your interest, mate, but this one seems to just give you
current time and date. As indicated above, not really what I'm after.

One click on TclockEx shows a calendar which you can easily scroll backwards
and forwards with in time (press the previous or next month, keep pressed to
go fast backwards/forward), just found out I was born on a thursday (in
1970) and I will turn 50 on a thursday (thursdays rule)

Dale Nurden's home page has moved to: http://www.rcis.co.za/dale

HTH Rod
 
P

Phred

Troppo? You sound like a house master we had at boarding school 50
years ago! :)

Anyway, thanks for this pointer. It sounds rather like cal40.zip
which was coincidentally mentioned in another group I saw this evening
(see my response "Re: print monthly calendar ..." cross-posted here)
which looks like the bee's knees too, if not the duck's nuts. But not
sure if cal40 also does that piping thing, though it wouldn't be
unusual to find it will.

I must say that it's a pleasure to find a 3622 byte program (cal.com
in that cal_gb.zip you mentioned below) that does something useful in
this day and age. (Mind you, it dates from 1989, so don't know if it
will be well behaved under WinXP until I try.)

Yes it does - just that I couldn't remember how to ...
cal 2004 >2004.txt will output to file.

Cheers, Phred.
 
A

Andrew H. Carter (Applied ROT 17 Left, for Email d

Troppo? You sound like a house master we had at boarding school 50
years ago! :)

Anyway, thanks for this pointer. It sounds rather like cal40.zip
which was coincidentally mentioned in another group I saw this evening
(see my response "Re: print monthly calendar ..." cross-posted here)
which looks like the bee's knees too, if not the duck's nuts. But not
sure if cal40 also does that piping thing, though it wouldn't be
unusual to find it will.

I must say that it's a pleasure to find a 3622 byte program (cal.com
in that cal_gb.zip you mentioned below) that does something useful in
this day and age. (Mind you, it dates from 1989, so don't know if it
will be well behaved under WinXP until I try.)


If you are looking for a program which can return a
date/period of time from one date to another then XSET can
do that. You can even generate a form letter if you wanted.
 
T

troppo19

Troppo? You sound like a house master we had at boarding school 50
years ago! :)
Troppo - cos here it's usually hot and sweaty :)
19 = 19 degrees south
I must say that it's a pleasure to find a 3622 byte program (cal.com
in that cal_gb.zip you mentioned below) that does something useful in
this day and age
And picks up Pope Gregory's bug-fixes of 1752 as well :)
They dropped a few days off the calendar, so that meant you had a bit less
than your 3-score-years-and-10. Caused some riots apparently ...
(Mind you, it dates from 1989, so don't know if it
will be well behaved under WinXP until I try.)
Curious - ran ok on my office XP machine with Citrix and loads of 'big
brother' restrictions, but needed a DOS box (command} on WinME ...
 
P

Phred

Troppo - cos here it's usually hot and sweaty :)
19 = 19 degrees south

Sounds like Townsville then. But we always thought of that as "Mt Isa
by the Sea" ;-).
And picks up Pope Gregory's bug-fixes of 1752 as well :)
They dropped a few days off the calendar, so that meant you had a bit less
than your 3-score-years-and-10. Caused some riots apparently ...
Curious - ran ok on my office XP machine with Citrix and loads of 'big
brother' restrictions, but needed a DOS box (command} on WinME ...

Running most things on ME gives current relevance to the old ad "Take
Vincent's with confidence" (or a Bex, if that's what you prefer).

Cheers, Phred.
 
J

John Smith

In aus.computers Phred said:
Thanks for your interest, mate, but this one seems to just give you
current time and date. As indicated above, not really what I'm after.

I can tell why you like the unix one now.
I thought tclockex was rather easy to use, and you would surely
click on the box to see the calender pop up, with scroll bars.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top