Setvirtualresolution(640,480)
SetPrintSize(25)
ResetTimer()
date$=GetCurrentDate()
time$=GetCurrentTime()
unix=GetUnixFromDate(Val(Left(date$,4)),Val(Mid(date$,6,2)),Val(Right(date$,2)),Val(Left(time$,2)),Val(Mid(time$,4,2)),Val(Right(time$,2)))
//Subtract 5 hours (in seconds) from the Unix value
hours=5*60*60
unix=unix-hours
hours=GetHoursFromUnix(unix)
Repeat
Printc ("Time now is ")
Print (time$)
Printc ("5 Hours ago the hour was ")
Print (hours)
Sync()
Until Timer()>15
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)