ropg / ezTime

ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`hour()` does not work as expected

milkpirate opened this issue · comments

Hey, could you tell me why the last call to hour does not deliver 21? What am I doing wrong?

Serial<<BerlinTz.dateTime(LAST_READ)<<endl;

auto adjustedUTC = BerlinTz.tzTime(TIME_NOW, UTC_TIME) + 150;

Serial<<BerlinTz.dateTime(adjustedUTC, LOCAL_TIME)<<endl;
Serial<<BerlinTz.hour(adjustedUTC, LOCAL_TIME)<<endl;
Thursday, 20-Jan-2022 21:03:35 CET
Thursday, 20-Jan-2022 21:06:05 CET
20