ArticleslgStudy

computer science

TIME (command)

TIME (command) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand TIME (command) rather than just read about it. In short: In computing, TIME is a command in DEC RT-11, DOS, IBM OS/2, Microsoft Windows and a number of other operating systems that is used to display and set the current system time. It is included in command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS, 4OS2 and 4NT.

TIME (command) — main illustration
TIME (command) — illustration

Key takeaways

  • TIME (command) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect TIME (command) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of TIME (command) from memory before moving on to harder problems.

Reference excerpt

In computing, TIME is a command in DEC RT-11, DOS, IBM OS/2, Microsoft Windows and a number of other operating systems that is used to display and set the current system time. It is included in command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS, 4OS2 and 4NT.

Implementations

The command is also available in the Motorola VERSAdos, Intel iRMX 86, PC-MOS, SpartaDOS X, ReactOS, SymbOS, and DexOS operating systems as well as in the EFI shell. On MS-DOS, the command is available in versions 1 and later. In Unix, the date command displays and sets both the time and date, in a similar manner.

Syntax The syntax differs depending on the specific platform and implementation:

DOS

OS/2 (CMD.EXE)

Note: /N means no prompt for TIME.

Windows (CMD.EXE)

When this command is called from the command line or a batch script, it will display the time and wait for the user to type a new time and press RETURN. Pressing RETURN without entering a new time will keep the current system time. The parameter '/T' will bypass asking the user to reset the time. The '/T' parameter is supported in Windows Vista and later and only if Command Extensions are enabled.

4DOS, 4OS2 and 4NT

Examples

OS/2 (CMD.EXE) Display the current system time:

Windows (CMD.EXE) To set the computer clock to 3:42 P.M., either of the following commands can be used:

4DOS, 4OS2 and 4NT Display the current system time:

Related commands

w32tm w32tm is a command-line tool of Microsoft Windows used to diagnose problems occurring with time setting or to troubleshoot any problems that might occur during or after the configuration of the Windows Time service. It was introduced as a standard feature of Windows 2000. The command can be used to convert an NTTE or NTP formatted date into a readable format. As an example of using the command, the current time zone settings can be displayed using the /tz parameter:

See also DATE (command) date (Unix) List of DOS commands Date and time notation

References

Further reading Wolverton, Van (1990). MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. Microsoft Press. ISBN 978-1-55615-289-4. Kathy Ivens; Brian Proffit (1993). OS/2 Inside & Out. Osborne McGraw-Hill. ISBN 978-0-07-881871-4. Frisch, Æleen (2001). Windows 2000 Commands Pocket Reference. O'Reilly. ISBN 978-0-596-00148-3.

External links

time | Microsoft Docs

Illustrations

TIME (command) illustration
TIME (command): Description of the TIME command of RT-11SJ displayed on a VT100.
Description of the TIME command of RT-11SJ displayed on a VT100.
TIME (command): TIME.COM (among other commands) in IBM PC DOS 1.0.
TIME.COM (among other commands) in IBM PC DOS 1.0.

Worked examples

Example 1 — a first encounter with TIME (command)

Start with the simplest possible case. Write down what TIME (command) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to TIME (command) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about TIME (command) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of TIME (command)

In research
TIME (command) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses TIME (command) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
TIME (command) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Internal DOS commands, MSX-DOS commands, Microcomputer software, so understanding it makes those chapters shorter.
In everyday life
Look for TIME (command) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “TIME (command)” →

How to study TIME (command) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what TIME (command) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain TIME (command) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is TIME (command) in simple terms?

In computing, TIME is a command in DEC RT-11, DOS, IBM OS/2, Microsoft Windows and a number of other operating systems that is used to display and set the current system time. It is included in command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS, 4OS2 and 4NT.

Why does TIME (command) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study TIME (command)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on TIME (command).

Tags

  • Internal DOS commands
  • MSX-DOS commands
  • Microcomputer software
  • OS/2 commands
  • ReactOS commands
  • Real-time clocks
  • Windows administration
  • Windows commands

Keep exploring