Untitled
unknown
plain_text
a year ago
893 B
1
Indexable
Never
@echo off echo Sistem zamanı ayarlanıyor... echo. REM Set the date and time variables set "day=%date:~0,2%" set "month=%date:~3,2%" set "year=%date:~6,4%" set "hour=%time:~0,2%" if "%hour:~0,1%" == " " set "hour=0%hour:~1,1%" set "minute=%time:~3,2%" set "second=%time:~6,2%" set "meridian=%time:~9,2%" REM Convert the hour to 24-hour format if necessary and add 3 hours for Turkish time if "%meridian%" == "PM" ( if %hour% LSS 12 ( set /a "hour=hour+12" ) ) if "%meridian%" == "AM" ( if %hour% EQU 12 ( set "hour=0" ) ) set /a "hour=hour+3" if %hour% GEQ 24 set /a "hour=hour-24" set "hour=0%hour%" set "hour=%hour:~-2%" REM Set the system time and date in Turkish format echo Sistem zamanı %hour%:%minute%:%second% olarak ayarlanıyor... time %hour%:%minute%:%second% echo Sistem tarihi %day%/%month%/%year% olarak ayarlanıyor... date %day%.%month%.%year% %dayOfWeek%