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 binnyva@gmail.com. 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
-t | Shows Time in "Hours:Min AM/PM" Format |
-d | Shows Date in "D-M-Y" Format |
-dm | Shows Date in "D-M" Format |
-md | Shows Date in "M-D" Format |
-l | Display day in Long Format - 1st January 2000. |
-0 | Add 0 to the number. 1-9-2004 becomes 01-09-2004 |
-? | Displays Help screen |
-x | Allows eXtended formatting of date and time. |
| After the '-x' leave a space and type the following |
|
/d | For Day | /D | For zeros in day(1 becomes 01) |
/m | For Month | /M | For month with zeros |
/w | For small name of Weekday (Mon,Tue, etc.) |
/W | For name of Weekday (Monday,Tuesday, etc.) |
/n | For small Name of the month (Jan, Feb, etc.) |
/N | For Name of the month (January, February, etc.) |
/y | For Year | /Y | For 4 digit year(2004) |
/h | For Hour | /H | For hours with zeros |
/2 | For hours in 24 hour clock |
/e | For minutE | /E | For minutEs with zeros |
/s | For Seconds | /S | For Seconds with zeros |
/p | For the Postfix. It is the 2 end chars in 1st,2nd etc-st,nd,rd,th |
/a | For 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
- BugFix : Corrected the non appearing 0 problem.
- Added the extending char '%'. '/' and '\' are still supported. DOS users will have problem with this option as '%' is a special charector in DOS.
- Added an option to include Postfix - st,nd,rd,th to date.
- Added Seconds support.
- Released as seperate program as well as a part of BatchTk
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 binnyva@gmail.com. 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 binnyva@gmail.com to the author. Describe the bug in as much detail as possible, and I'll do what I can to help resolve the problem.
|