Time
Posted: Thu Mar 16, 2017 8:34 pm
I have two noob questions:
1. What are the correct parameters to pass to the time.setup function to get daylight savings time to work?
In the example below, I tried several things for the second parameter, but always get standard time.
2. In the following test program, is it normal to have the time() function return zero for a while before it returns the correct results?
I typically get the following results-
Thu Jan 01 00:00:00 1970
Thu Mar 16 17:32:54 2017 took 13 loops
1. What are the correct parameters to pass to the time.setup function to get daylight savings time to work?
In the example below, I tried several things for the second parameter, but always get standard time.
2. In the following test program, is it normal to have the time() function return zero for a while before it returns the correct results?
Code: Select all
memclear
cls
time.setup(-8,-7)
a$=time()
wprint a$ & "<br>"
i = 0
do
i = i + 1
b$=time()
loop while a$=b$
wprint b$ & " took " & i & " loops<br>"
wait
end
I typically get the following results-
Thu Jan 01 00:00:00 1970
Thu Mar 16 17:32:54 2017 took 13 loops