30.11.2014, 16:26
(
Последний раз редактировалось bogdyutzu; 30.11.2014 в 17:02.
)
I want that daylight change smoothly.
This is what I tried:
Every month night increases or decreases with 1 hour. So I add to current time some hours depending on month.
But the problem is that morning light is wrong.
This is what I tried:
PHP код:
GetWinterSummerDay(&hour)
{
new
__y,
__m,
__d;
getdate(__y, __m, __d);
hour += (1 <= __m <= 6) ? (6-__m) : (__m-6);
return true;
}
But the problem is that morning light is wrong.