Time.h file missing

I need to use some time functions, but the Time library seems to be missing. I found the timer library, but nothing with the time library.

So where has the time liberary gone to?

Thanks

Use TimeLib.h now: GitHub - PaulStoffregen/Time: Time library for Arduino

I'm not sure what you mean by "missing". Did you ever have it installed?

Here's how to install it:

  • Sketch > Include Library > Manage Libraries...
  • Wait for download to finish.
  • In the "Filter your search..." box, type "time".
  • Scroll down through the search results until you see "Time by Michael Margolis". Click on it.
  • Click "Install."
  • Wait for installation to finish.
  • Click "Close".

Note that you should use:

#include <TimeLib.h>

instead of:

#include <Time.h>

The reason is there is an unrelated file named time.h that will be used instead of Time.h on case-insensitive operating systems like Windows and macOS. For that reason, the file TimeLib.h was added to the Time library.

pert:
I'm not sure what you mean by "missing". Did you ever have it installed?

Here's how to install it:

  • Sketch > Include Library > Manage Libraries...
  • Wait for download to finish.
  • In the "Filter your search..." box, type "time".
  • Scroll down through the search results until you see "Time by Michael Margolis". Click on it.
  • Click "Install."
  • Wait for installation to finish.
  • Click "Close".

Note that you should use:

#include <TimeLib.h>

instead of:

#include <Time.h>

The reason is there is an unrelated file named time.h that will be used instead of Time.h on case-insensitive operating systems like Windows and macOS. For that reason, the file TimeLib.h was added to the Time library.

Thank you, no it is not available in the 1.8.7 version of the software. It is also not available in the current version of sloeber, so I have to assume I need to download the library and install it somehow.

ov10fac:
Thank you, no it is not available in the 1.8.7 version of the software.

That's correct. It's not bundled with the Arduino IDE. It never has been.

ov10fac:
I have to assume I need to download the library and install it somehow.

"Somehow"? I just gave you very clear instructions on how to do this. Did you read them? Did you try them?