usa_dst(3avr)

πŸ“¦
version 2.2.1 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

bestie, the manual name is usa_dst(3avr) β€” yes, that's the whole vibe πŸ’–. And the star of the show is usa_dst β€” <util/usa_dst.h>: Daylight Saving function for the USA. periodt.

✨ SYNOPSIS ✨

🌈 Functions 🌈

int usa_dst (const time_t *timer, int32_t *z)

πŸ’… Detailed Description πŸ’…

#include <util/usa_dst.h>

Daylight Saving function for the USA. no cap.

πŸŽ€ Function Documentation πŸŽ€

πŸ’– int usa_dst (const time_t * timer, int32_t * z) πŸ’–

okay so to utilize this function, call:

set_dst(usa_dst);

Given the time stamp and time zone parameters provided, the Daylight Saving function must return a value appropriate for the tm structures' tm_isdst element. That is:

  • 0 β€” this means Daylight Saving is not in effect.
  • -1 β€” this means it cannot be determined if Daylight Saving is in effect.
  • A positive integer β€” this represents the number of seconds a clock is advanced for Daylight Saving. This will typically be ONE_HOUR.
⚠️ Daylight Saving 'rules' are subject to frequent change. For production applications it is recommended to write your own DST function, which uses 'rules' obtained from, and modifiable by, the end user (perhaps stored in EEPROM).

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for AVR-LibC from the source code.


stay slay, bestie 🫢 this page was brought to you by AVR-LibC and Version 2.2.1, and the manual is usa_dst(3avr) πŸ’–βœ¨

πŸ“¦ where this page comes from