In
computing, TIME is a
command
Command may refer to:
Computing
* Command (computing), a statement in a computer language
* COMMAND.COM, the default operating system shell and command-line interpreter for DOS
* Command key, a modifier key on Apple Macintosh computer keyboards
* ...
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
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'', ...
.
[MS-DOS and Windows command line time command](_blank)
/ref> It is included in command-line interpreter
A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invoking executables and pr ...
s ( shells) such as COMMAND.COM
COMMAND.COM is the default command-line interpreter for MS-DOS, Windows 95, Windows 98 and Windows Me. In the case of DOS, it is the default user interface as well. It has an additional role as the usual first program run after boot (init proc ...
, cmd.exe
, 4DOS
4DOS is a command-line interpreter by JP Software, designed to replace the default command interpreter COMMAND.COM in Microsoft DOS and Windows. It was written by Rex C. Conn and Tom Rawson and first released in 1989. Compared to the default, ...
, 4OS2
4OS2 is the OS/2 analogue of 4NT and 4DOS by JP Software, Inc. JP Software discontinued 4OS2, TCMDOS2 and TCMD16, making version 3.0, 2.0, 2.0 the final version of these. The code for 4OS2 has been released, and is maintained, first by SciTec ...
and 4NT.
Implementations
The command is also available in the Motorola VERSAdos
VERSAdos is an operating system dating back to the early 1980s for use on the Motorola 68000 development system called the '' EXORmacs'' which featured the VERSAbus and an array of option cards. They were typically connected to CDC Phoenix disk dr ...
, Intel iRMX 86, PC-MOS, SpartaDOS X
SpartaDOS X (or SpartaDOS 4.0) is a disk operating system for the Atari 8-bit family of computers that closely resembles MS-DOS. It was developed and sold by ICD, Inc. in 1987-1993, and many years later picked up by the third-party community Sp ...
, ReactOS, SymbOS
SYmbiosis Multitasking Based Operating System (SymbOS) is a multitasking operating system for Zilog Z80-based 8-bit computer systems.
Contrary to early 8-bit operating systems it is based on a microkernel, which provides preemptive and priori ...
, 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 oper ...
, the command is available in versions 1 and later.
In Unix, the date
Date or dates may refer to:
*Date (fruit), the fruit of the date palm (''Phoenix dactylifera'')
Social activity
*Dating, a form of courtship involving social activity, with the aim of assessing a potential partner
**Group dating
* Play date, a ...
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
TIME ime
Ime is a village in Lindesnes municipality in Agder county, Norway. The village is located on the east side of the river Mandalselva, along the European route E39 highway. Ime is an eastern suburb of the town of Mandal. Ime might be considered to ...
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 and later and only if Command Extensions are enabled.
4DOS, 4OS2 and 4NT
TIME T h[:mm[:ss.html"_;"title="mm[:ss.html"_;"title="h[:mm[:ss">h[:mm[:ss">mm[:ss.html"_;"title="h[:mm[:ss">h[:mm[:ss[AM_.html" ;"title="mm[:ss">h[:mm[:ss.html" ;"title="mm[:ss.html" ;"title="h[:mm[:ss">h[:mm[:ss">mm[:ss.html" ;"title="h[: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)
* date (Unix)
*List of DOS commands
This article presents a list of commands used by DOS operating systems, especially as used on x86-based IBM PC compatibles (PCs). Other DOS operating systems are not part of the scope of this list.
In DOS, many standard system commands were pro ...
* 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