Draft for Information Only
ContentMS DOS Command: TIME
MS DOS Command: TIMEReference from Microsoft MS-DOS cmd help DescriptionDisplays the system time or sets your computer's internal clock. MS-DOS uses time information to update the directory whenever you create or change a file. SyntaxTIME [hours:[minutes[:seconds[.hundredths]]][A|P]]
To display the current time or to display a prompt by which you can change the current time, use the following syntax: TIME
Parameters
Related CommandsFor information about changing the current date, see the DATE command. For information about changing the time format, see the COUNTRY command. RemarksSpecifying an invalid TIME formatIf you specify the time in an invalid format, MS-DOS displays the following message and then waits for you to specify the time: Invalid time Enter new time:_ Changing the TIME formatYou can change the TIME format by changing the COUNTRY setting in your CONFIG.SYS file. For more information, see the COUNTRY command. Depending on the country code, MS-DOS will display the time in the 12-hour format or the 24-hour format. If you are setting the time in the 12-hour format, be sure to specify P for hours after noon. Ensuring that MS-DOS prompts you for the timeIf you want MS-DOS to prompt you for the current time whenever you start your system, you can add the TIME command to your AUTOEXEC.BAT file. MS-DOS will automatically prompt you for the time and date if you do not have an AUTOEXEC.BAT file. ExamplesTo set your computer's clock to 1:36 P.M., use either of the following commands: TIME 13:36 TIME 1:36p ©sideway ID: 110700269 Last Updated: 7/30/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019