Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
657 B
2
Indexable
@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%"
set "minute=%time:~3,2%"
set "second=%time:~6,2%"

REM Convert the hour to 24-hour format if necessary and add 3 hours for Turkish time
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%