Hi Dave,
go check out the thread over on espbasic... http://www.esp8266.com/viewtopic.php?f=41&t=11518
and check out his code... he does a better job (simpler code) of determining DST yes/no for the ESP8266
Note: the following bit of code is not PICBASIC it's espBASIC
and to others... if you haven't checked out and played with mike's awesome espBASIC you are missing outCode:[calculate_DST] dow = time("dow") day = time("day") month = time("month") hour = time("hour") if ((DST = 1) and (dow = "Sun") and (month = "Nov") and (day >= 1) and (day < 8)) then DST = 0 write(DaylightSavings,str(DST)) endif if ((DST = 0) and (dow = "Sun") and (month = "Mar") and (day >=8) and (day < 15)) then DST = 1 write(DaylightSavings,str(DST)) endif return
esp8266basic.com
regards
dwight





Bookmarks