HOME

TheInfoList



OR:

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.MS-DOS and Windows command line time command
/ref> It is included in command-line interpreters ( shells) such as COMMAND.COM, 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 SciTech ...
and 4NT.


Implementations

The command is also available in the Motorola VERSAdos, 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 S ...
,
ReactOS ReactOS is a free and open-source operating system for amd64/i686 personal computers intended to be binary-compatible with computer programs and device drivers made for Windows Server 2003 and later versions of Windows. ReactOS has been noted a ...
,
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 prior ...
, 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 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 ( constituency) ...
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 ...


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">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) Current Unix time () Unix time is a date and time representation widely used in computing. It measures time by the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, the beginning of the Unix epoch, less adjustments ...
* List of DOS commands * 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