Skip to content

Improve the examples and documentation #106

Open
@rin67630

Description

@rin67630

IMHO since this is this standard Arduino library for NTP, it would avoid a lot of mistakes if its functionality and limitation would be described a bit more elaborated:

It should be important to point out that this library is NOT intended to provide a full date/time functionality and will be limited to provide a time information without provision for daylight saving times, keeping the library sleek, since the overhead to compute an accurate date with respect to leap seconds is not really trivial and requires else quite a lot of resources.

On the other side, the library provides the functionality to return split numbers by seconds, minutes and hours, which is not mentioned in the given examples.

  Second  = timeClient.getSeconds();
  Minute  = timeClient.getMinutes();
  Hour    = timeClient.getHours();
  Weekday = timeClient.getDay();
  Epoch   = timeClient.getEpochTime();

That should be mentioned, since examples are limited to print a string, which means frequently a lot of lost time to find the correct method of getting the required information, which is unfortunately pretty different for each library.

I hope you could take that request into consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions