PaulStoffregen / Time

Time library for Arduino
http://playground.arduino.cc/code/time
1.25k stars 666 forks source link

Added a new signature for makeTime to create time_t from discrete elements #131

Open Daemach opened 5 years ago

Daemach commented 5 years ago

I like this library. I needed to be able to create a time_t from discrete elements so this signature creates the tm struct to pass to the original.

Bougakov commented 5 years ago

@Daemach thanks a lot for this code - it helped me a lot when I was implementing a feature that calculated how much time is left between now and future events on the same day: https://github.com/Bougakov/wallclock/blob/master/wallclock.ino

papillon81 commented 3 years ago

I did the exact same thing for that purpose. But in my code. So I highly support this request :+1: