#include <ezTime.h>
#include <WiFi.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Connection to WiFi");
WiFi.begin("Wokwi-GUEST", "", 6);
while (WiFi.status() != WL_CONNECTED) {
delay(250);
}
Serial.println("Connected");
waitForSync();
}
void loop() {
// put your main code here, to run repeatedly:
delay(1000); // this speeds up the simulation
Timezone londonTimezone;
londonTimezone.setLocation("Europe/London");
Serial.println("Looping...");
Serial.println("- London Time: " + londonTimezone.dateTime("H:i"));
Serial.print("- London Millis: ");
Serial.println(londonTimezone.now());
}