Timezone_Generic Library

Library to facilitate time zone conversions and automatic daylight saving (summer) time adjustments.
ORIGINAL POST
By Khoi Hoang
details

timezone.PNG

The Timezone_Generic library is designed to work in conjunction with the Arduino Time library, which must also be installed on your system. This documentation assumes some familiarity with the Time library.

 

The Timezone_Generic library implements two objects to facilitate time zone conversions:

  • TimeChangeRule object describes when local time changes to daylight (summer) time, or to standard time, for a particular locale.

  • Timezone object uses TimeChangeRules to perform conversions and related functions. It can also write its TimeChangeRules to or read them from EEPROM/DueFlashStorage/FlashStorage/LittleFS/SPIFFS. Multiple time zones can be represented by defining multiple Timezone objects.

 

 

timezone.PNG

The Timezone_Generic library is designed to work in conjunction with the Arduino Time library, which must also be installed on your system. This documentation assumes some familiarity with the Time library.

 

The Timezone_Generic library implements two objects to facilitate time zone conversions:

  • TimeChangeRule object describes when local time changes to daylight (summer) time, or to standard time, for a particular locale.

  • Timezone object uses TimeChangeRules to perform conversions and related functions. It can also write its TimeChangeRules to or read them from EEPROM/DueFlashStorage/FlashStorage/LittleFS/SPIFFS. Multiple time zones can be represented by defining multiple Timezone objects.

 

 

documents
Code
source

COMMENTS

Please Login to comment
  Subscribe  
Notify of
POSTED BY