Help with time...
#1

Hello,

I wanna to count how much hours and minutes between:
16:00 Today until 13:00 Tommorow.

thanks for help.
Reply
#2

16 -13 = ?
Reply
#3

21 hours
Reply
#4

But I want to do it in Pawn...
Reply
#5

Do you just want it to work for today and tomorrow or in general from date x to y

For today and tomorrow it just would be
pawn Код:
new
    todayhour = 16,
    todaymin = 0,
    tomorrowhour = 13,
    tomorrowmin = 0,
    difference = (tomorrowhour + 24 - todayhour) * 60 + tomorrowmin - todaymin,
    differencehour = difference / 60,
    differencemin = difference % 60
;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)