A standalone library, mainly for Arduino clients, to generate timestamps (both UNIX and NTP) for given dates/times.
You might want to use it in combination with the TimeLib to generate timestamps of either a date/time when the compiler ran or to generate offline timestamps as backup if your NTP server request fails (may be due to loss of internet connection).
You can find simple examples in the examples section.
The only thing you need to do is to include this library into your sketch:
- Download the latest version from releases
- Extract the archive and move the Timestamps folder to your ~/Arduino/libraries/ directory
- If your Arduino IDE is already running, restart it
- Include this library via Sketch->Include Library->Timestamps or simply by adding this row at the begin of your sketch:
#include <Timestamps.h>
- You're ready to use it, have fun! Feel free to contact me if something doesn't work or you miss anything.