In
computing
Computing is any goal-oriented activity requiring, benefiting from, or creating computer, computing machinery. It includes the study and experimentation of algorithmic processes, and the development of both computer hardware, hardware and softw ...
, TIME is a
command
Command may refer to:
Computing
* Command (computing), a statement in a computer language
* command (Unix), a Unix command
* COMMAND.COM, the default operating system shell and command-line interpreter for DOS
* Command key, a modifier key on A ...
in
DEC RT-11
RT-11 (Real-time 11) is a discontinued small, low-end, single-user real-time operating system for the full line of Digital Equipment Corporation PDP-11 16-bit computers. RT-11 was first implemented in 1970. It was widely used for real-time compu ...
,
DOS,
IBM
International Business Machines Corporation (using the trademark IBM), nicknamed Big Blue, is an American Multinational corporation, multinational technology company headquartered in Armonk, New York, and present in over 175 countries. It is ...
OS/2
OS/2 is a Proprietary software, proprietary computer operating system for x86 and PowerPC based personal computers. It was created and initially developed jointly by IBM and Microsoft, under the leadership of IBM software designer Ed Iacobucci, ...
,
Microsoft
Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
Windows
Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
and a number of other
operating system
An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs.
Time-sharing operating systems scheduler (computing), schedule tasks for ...
s that is used to display and set the current
system time
In computer science and computer programming, system time represents a computer system's notion of the passage of time. In this sense, ''time'' also includes the passing of calendar date, days on the calendar.
System time is measured by a ''sys ...
.
[MS-DOS and Windows command line time command](_blank)
/ref> 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
Motorola, Inc. () was an American multinational telecommunications company based in Schaumburg, Illinois. It was founded by brothers Paul and Joseph Galvin in 1928 and had been named Motorola since 1947. Many of Motorola's products had been ...
VERSAdos, Intel
Intel Corporation is an American multinational corporation and technology company headquartered in Santa Clara, California, and Delaware General Corporation Law, incorporated in Delaware. Intel designs, manufactures, and sells computer compo ...
iRMX 86, PC-MOS, SpartaDOS X, ReactOS
ReactOS is a Free and open-source software, free and open-source operating system for i586/amd64 personal computers that is intended to be binary-code compatibility, binary-compatible with computer programs and device drivers developed for Wind ...
, SymbOS, and DexOS operating systems as well as in the EFI shell. On MS-DOS
MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few op ...
, the command is available in versions 1 and later.
In Unix
Unix (, ; trademarked as UNIX) is a family of multitasking, multi-user computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
, the date
command displays and sets both the time and date, in a similar manner.
Syntax
The syntax
In linguistics, syntax ( ) is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure (constituenc ...
differs depending on the specific platform and implementation:
DOS
TIME ime
OS/2 (CMD.EXE)
TIME h-mm-ss N
Note: /N
means no prompt for TIME
.
Windows (CMD.EXE)
TIME time
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
Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
and later and only if Command Extensions are enabled.
4DOS, 4OS2 and 4NT
TIME T h[:mm[:ss">mm[:ss">h[:mm[:ss[AM "> PM
/T: (display only)
hh: The hour (0–23).
mm: The minute (0–59).
ss: The second (0–59), set to 0 if omitted.
Examples
OS/2 (CMD.EXE)
*Display the current system time:
[C:\]TIME
Current time is: 3:25 PM
Enter the new time:
Windows (CMD.EXE)
*To set the computer clock to 3:42 P.M., either of the following commands can be used:
C:\>TIME 15:42
C:\>TIME 3:42P
4DOS, 4OS2 and 4NT
*Display the current system time:
C:\SYS\SHELL\4DOS>TIME /T
19:30:42
See also
*DATE (command)
In computer science and computer programming, system time represents a computer system's notion of the passage of time. In this sense, ''time'' also includes the passing of days on the calendar.
System time is measured by a ''system clock'', w ...
* date (Unix)
*List of DOS commands
This article lists notable commands provided by the MS-DOS disk operating system (DOS), especially as used on an IBM PC compatible computer. Other DOS variants as well as the legacy Windows shell, Command Prompt (cmd.exe), provide many of these c ...
* Date and time notation
References
Further reading
*
*
*
External links
time , Microsoft Docs
{{Windows commands
Computer real-time clocks
Internal DOS commands
MSX-DOS commands
OS/2 commands
ReactOS commands
Windows commands
Microcomputer software
Windows administration