Tnd V 3.00.A - Time 'n Date

Description

This program will displays the time and date in the format specified at command line. Made as a replacement for the 'time' and 'date' commands of MS DOS. I mixed the two commands together and added a lot of features to it. DOS users will find this very useful if they want to display time in Batch file.


Getting A Copy

Bnd can be downloaded FREE of charge from my site. Just follow the instructions given in the readme file to install it. The instructions are given below.
Download Tnd 3.00.A     15.9 KB

Intalling Tnd

Just copy the file "TND.EXE" to the folder "C:\WINDOWS\COMMAND". Or just double click the "Install" script that is provided with it. This will automatically copy the TND.EXE file to "C:\WINDOWS\COMMAND" folder. Why? Whenever you run a command from DOS prompt, it searches in this directory to find if any program with that command is found. If found, that program will be executed. So when you type "TND" in the dos prompt(sans quotes), the file TND.EXE will be executed.


Uninstalling Tnd

All you have to do to uninstall Tnd is delete the "TND.EXE" file from the "C:\WINDOWS\COMMAND" folder.


Can I get the source of Tnd?

Tnd is distruibuted as an open source program. If you want the source, send a mail to me at . I compiled this program with Borland C++ compiler - I don't think it will have any problems if compiled in other compilers. If you want to make any change to the software feel free to do so. But please give credit where credit is due and keep my name or my site in it. If you make some major changes to this software, I will add that change to Tnd and include your name in the credits.


Command Line Options

-tShows Time in "Hours:Min AM/PM" Format
-dShows Date in "D-M-Y" Format
-dmShows Date in "D-M" Format
-mdShows Date in "M-D" Format
-lDisplay day in Long Format - 1st January 2000.
-0Add 0 to the number. 1-9-2004 becomes 01-09-2004
-?Displays Help screen
-xAllows eXtended formatting of date and time.
  After the '-x' leave a space and type the following
 
/dFor Day /DFor zeros in day(1 becomes 01)
/mFor Month /MFor month with zeros
/wFor small name of Weekday (Mon,Tue, etc.) /WFor name of Weekday (Monday,Tuesday, etc.)
/nFor small Name of the month (Jan, Feb, etc.) /NFor Name of the month (January, February, etc.)
/yFor Year/YFor 4 digit year(2004)
/hFor Hour/HFor hours with zeros
/2For hours in 24 hour clock
/eFor minutE/EFor minutEs with zeros
/sFor Seconds/SFor Seconds with zeros
/pFor the Postfix. It is the 2 end chars in 1st,2nd etc-st,nd,rd,th
/aFor AM/PM
/-For putting the character '-'
/_For putting a space ' '
/'For putting a quotes character (")

Note : The inline formatting option use '/' and not '\'.


Examples

I am assuming that you use windows. If this should be done in dos some changes should be made.
1) To make a folder with today's date. Make a batch file with the below content and run it.

@echo off
becho mkdir > c:\windows\temp\tmp$~.bat
becho " \"">> c:\windows\temp\tmp$~.bat
tnd -x "/M - /D\'" >> c:\windows\temp\tmp$~.bat
echo. >> c:\windows\temp\tmp$~.bat
call c:\windows\temp\tmp$~.bat

2) Get today's date into a file. Run this command and replace "filename.ext" with the name of the file.
tnd -l >> filename.ext
3) Get the time into a file. Run this command and replace "filename.ext" with the name of the file.
tnd -t >> filename.ext

History

V 1.00.A
Very basic build. Internal release only.

V 2.00.A
First Major Public Release as the part of BatchTk.

V 3.00.A


Feedback

How do I get the latest version of Tnd?

You can visit my website at http://www.oocities.org/binnyva/binny/pro/dos/batch_tk/tnd.html for more information and updates of Tnd. As soon as I make a major public release of Tnd, it will be featured there.


How do I contact the author of Tnd?

You can contact me by sending a email to . You can also visit my website at http://www.oocities.org/binnyva for more information and updates of Tnd.


What if I find a bug?

If you find a bug, please send to the author. Describe the bug in as much detail as possible, and I'll do what I can to help resolve the problem.