Quote Originally Posted by richard View Post
the only thing I might add is that the conversion from utc to local time only needs to be done if and when the hour changes , its not needed in every loop.
a flag can be set when the utc hour now is != current utc hour , then the flag can be cleared when the conversion is done
Hi Richard, once again thanks a lot for your kind help and time.

I work on this very slow, because i need to understand the code, and then i need to test the code every time i change something.

Now i need to fix the months. Please give me some time. I will upload the code and then we can discuss what might need to be done.

As i have it in mind, i need to create a label. Under the label i need to speciafy which month has 30 days and which has 31 at the begging. For the month February i need to specify which YEAR is 28 days and which is 29.

Then i will connect the code:

Code:
ay_added = 0
hh = hh + 3
if  hh > 23 then
day_added = 1
endif
hh = hh//24
if day_added = 1 then
day = day + 1
if day > num_date then ; i havent done anything to this up to now. I need to figure out how to tell the programm about the num_date (No of the day today in this month)
day = 1
if month > 12 then
month = 1
year = year +1
    endif
      endif
        endif
to the Label which has all the info for each month.

Is that right?