How to make a timestamp in DOS
Вставка
- Опубліковано 25 гру 2022
- How can you generate a quick timestamp in DOS? You can use DATE/T and TIME/T, or you can write a short DOS program to do it.
Visit our website
www.freedos.org/
Join us on Facebook
/ freedosproject
Follow us on Mastodon
fosstodon.org/@freedosproject
Consider supporting me on Patreon
/ freedos
And don't forget to Like and Subscribe!
Standard comment rules apply. - Наука та технологія
Yes I would love more videos like this. I love DOS and thank you for making FreeDos and keeping Dos alive. Dos was a time when people learned how to use their computers. Now with modern MS OSes your computer uses you.
I've got a few more "programming" topics on my "to-do" list. So you'll see more, but I'll probably switch topics for the next one.
Always support here
Dude, you are making this on Christmas morning! I totally love programming DOS too but take a day off.❤️❤️❤️
Thanks! I recall that the question came in and I thought, "That's easy," so I did a quick video on it. (And then I shutdown the computer and enjoyed Christmas with the family.) ☺
This made me envious when I saw how quickly it compiled. Looking at things from the world of software development in 2022, we really didn't gain that much in exchange for the dramatic increase in complexity.
It helps that it's on a VM in a modern system, so everything compiles lightning fast. ☺ But yes, these smaller, more focused programs compile pretty quickly, even on original "classic" hardware.
Thank you 🙂 for teaching us c programming your video's are really helpful i learned a lot.
Glad to hear it! A little programing can get you a long way. It's a great way to make your own custom tools.
Thirsty for more videos like this,😋
Thanks Jim
Thanks! And this one was a timely topic too.
nice quick tip, thanks!
Glad you liked it!
My memories Back to 1995!
DOS is still pretty cool. ☺
@@freedosproject and will work when all else fails
That was a nice video.
I just tested the TIME and DATE commands of MS-DOS 6 and DR-DOS 6 and found out, that only FreeDOS does provide a /t and /d parameter option to print the time and date without an interactive prompt.
TIME and DATE are internal commands of the FreeCOM command shell and the memory footprint of the FreeCOM command shell should be kept low. This might be the reason, why there is no more sophisticated way to print the time and date in a more flexible manner.
You got it. TIME and DATE are internal commands, so these are intentionally small commands. The /T option basically skips the "prompt for new date/time" part of those programs, and just stops after displaying the current date/time. (And as you noticed, /T is FreeDOS-only.)
I an the first view