-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimeleap.bat
More file actions
52 lines (51 loc) · 1.06 KB
/
timeleap.bat
File metadata and controls
52 lines (51 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
REM Made by IntSPstudio
REM Time Leap
REM Thank you for using this software!
REM Version: 0.0.4.20182503
REM ID: 720002001
REM Twitter: @IntSPstudio
REM SETTINGS
echo Settings
setlocal enabledelayedexpansion
set /p timeinterval="-Time interval: "
set /p loopcounter="-Loop counter: "
set /p counterleap=" -Leap length: "
set currenthour=%time: =0%
set /a currenthour=%currenthour:~0,2%
set /a debugger=0
REM MAIN LOOP
echo.
set /a fhh=%currenthour%
for /l %%i in (1,1,%loopcounter%) do (
REM 'FAKE' HOUR VALUE
set /a check=!fhh!+%counterleap%
set /a fhh+=%counterleap%
if !check! geq 24 (
set /a fhh-=24
)
REM GET TIME
set ctime=!fhh!.!time:~3,2!.!time:~6,2!,!time:~9,2!
REM CHANGE TIME
if %debugger%==0 (
time !ctime!
echo %%i / %loopcounter%
) else (
echo %%i / %loopcounter% - !ctime!
)
REM PAUSE
timeout /t %timeinterval% /nobreak > NUL
)
REM BACK TO NORMAL
echo.
echo Changing time to normal
if %debugger%==0 (
pause
)
set /a fhh=%currenthour%
set ltime=!fhh!.!time:~3,2!.!time:~6,2!,!time:~9,2!
if %debugger%==0 (
time !ltime!
) else (
echo !ltime!
)