|
In computing,
SyntaxThe syntax of both commands differs depending on the specific platform and implemenation: Microsoft Windows (cmd.exe)
time [/t] [/time] [hours:[minutes[:seconds[.hundredths]]][{A|P}]]
date [mm-dd-yy] [/t] Note: When these commands are called from the command line or a batch script, they will display the time or date and wait for the user to type a new time or date and press RETURN. The parameter '/t' will bypass asking the user to reset the time or date. 4DOS/4NTTIME [/T] [hh[:mm[:ss]]] [AM | PM] hh: The hour (0 - 23). mm: The minute (0 - 59). ss: The second (0 - 59), set to 0 if omitted. /T: (display only) DATE [/T] [mm-dd-yy] /T: (Display only) mm: The month (1 - 12). dd: The day (1 - 31). yy: The year (00 - 99, or a 4-digit year). Windows PowerShellGet-Date [[-Date] <DateTime>] [-Year <Int32>] [-Month <Int32>] [-Day <Int32>] [-Hour <Int32>] [-Minute <Int32>] [-Second <Int32>] ... Set-Date [-Date] <DateTime> ... Set-Date [-Adjust] <TimeSpan> ... OS/2 (cmd.exe)TIME [hh-mm-ss] [/N] DATE [mm-dd-yy] or [dd-mm-yy] or [yy-mm-dd] or [yy-dd-mm] Note: ExamplesMicrosoft Windows (cmd.exe)
C:\> time 15:42 C:\> time 3:42P
C:\> date 11.16.82 11-16-82 11/16/82
date /t 4DOS/4NT
C:\PROGRAM FILES\JPSOFT\4DOS>time /t 19:30:42
C:\PROGRAM FILES\JPSOFT\4DOS>date /t Wed 7.05.2008 Windows PowerShell
PS C:\>Set-Date -Adjust (New-TimeSpan -Minutes -5) Wednesday, May 07, 2008 7:25:42 PM
PS C:\>((date) - (date 11/16/1982)).Days 9304
PS C:\>$culture = new-object Globalization.CultureInfo 'de-DE' PS C:\>(date).ToString($culture) 07.05.2008 19:30:42 OS/2 (cmd.exe)
[C:\]time Current time is: 7.30.42,21 Enter the new time:
[C:\]date Current date is: Wed 7.05.2008 Enter the new date: (dd.mm.yy) See alsoReferences
|
|||||||||||||||||||||||||||||||||||||||||||||
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net