我想在 Arduino 中实现这个功能
uint32_t GetSeconds(int hour_now, int minutes_now, int seconds_now,
int hour_future, int minutes_future, int seconds_future);
像这样,但不使用所涉及的日期:
uint32_t future = DateTime(2021, 1, 1, 16, 0, 0).unixtime();
DateTime now = rtc.now();
uint32_t timestamp = now.unixtime();
uint32_t seconds_to_sleep = future - timestamp;