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.
  • Наука та технологія

КОМЕНТАРІ • 19

  • @clintthompson4100
    @clintthompson4100 Рік тому +8

    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.

    • @freedosproject
      @freedosproject  Рік тому +1

      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.

  • @user-je2yu8yu7g
    @user-je2yu8yu7g Рік тому +1

    Always support here

  • @UnionYes1021
    @UnionYes1021 Рік тому

    Dude, you are making this on Christmas morning! I totally love programming DOS too but take a day off.❤️❤️❤️

    • @freedosproject
      @freedosproject  Рік тому

      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.) ☺

  • @cthudo
    @cthudo Рік тому +1

    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.

    • @freedosproject
      @freedosproject  Рік тому +1

      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.

  • @DV-ye6xb
    @DV-ye6xb Рік тому

    Thank you 🙂 for teaching us c programming your video's are really helpful i learned a lot.

    • @freedosproject
      @freedosproject  Рік тому +1

      Glad to hear it! A little programing can get you a long way. It's a great way to make your own custom tools.

  • @ahmad-murery
    @ahmad-murery Рік тому

    Thirsty for more videos like this,😋
    Thanks Jim

    • @freedosproject
      @freedosproject  Рік тому +1

      Thanks! And this one was a timely topic too.

  • @godfather00cz
    @godfather00cz Рік тому

    nice quick tip, thanks!

  • @RoddyBezerra
    @RoddyBezerra Рік тому +1

    My memories Back to 1995!

    • @freedosproject
      @freedosproject  Рік тому +3

      DOS is still pretty cool. ☺

    • @ahmad-murery
      @ahmad-murery Рік тому

      @@freedosproject and will work when all else fails

  • @OpenGL4ever
    @OpenGL4ever Рік тому

    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.

    • @freedosproject
      @freedosproject  Рік тому +1

      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.)

  • @b1ngs
    @b1ngs Рік тому

    I an the first view