cmd.exe: Support TIME /T option.
This commit is contained in:
parent
988ef41da9
commit
b6ed73b1ac
@ -1311,10 +1311,13 @@ void WCMD_setshow_time (void) {
|
|||||||
GetLocalTime(&st);
|
GetLocalTime(&st);
|
||||||
if (GetTimeFormat (LOCALE_USER_DEFAULT, 0, &st, NULL,
|
if (GetTimeFormat (LOCALE_USER_DEFAULT, 0, &st, NULL,
|
||||||
curtime, sizeof(curtime))) {
|
curtime, sizeof(curtime))) {
|
||||||
WCMD_output ("Current Time is %s\nEnter new time: ", curtime);
|
WCMD_output ("Current Time is %s\n", curtime);
|
||||||
ReadFile (GetStdHandle(STD_INPUT_HANDLE), buffer, sizeof(buffer), &count, NULL);
|
if (strstr (quals, "/T") == NULL) {
|
||||||
if (count > 2) {
|
WCMD_output ("Enter new time: ", curtime);
|
||||||
WCMD_output (nyi);
|
ReadFile (GetStdHandle(STD_INPUT_HANDLE), buffer, sizeof(buffer), &count, NULL);
|
||||||
|
if (count > 2) {
|
||||||
|
WCMD_output (nyi);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else WCMD_print_error ();
|
else WCMD_print_error ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user