RTC_ADJUSTWDAY(3)
=================
Thomas "Cakeisalie5" Touhey
:Email: thomas@touhey.fr
:man source: librtc
:man manual: librtc manual

NAME
----
rtc_adjustwday - Adjust week day in librtc date

SYNOPSIS
--------
[source,c]
----
#include <librtc.h>

void rtc_adjustwday(rtc_date_t *date);
----

DESCRIPTION
-----------
When you modify a date, it is probable that you won't touch to the week day.
Before setting a new/modified date to the RTC, to keep the week day accurate,
you can use this helper function in a simple way :

[source,c]
----
rtc_date_t date;
// modify it
rtc_adjustwday(&date);
rtc_setdate(date);
----

It is not made automatically so that you can manage it yourself.

SEE ALSO
--------
*librtc*(3),
*rtc_date_t*(3),
*rtc_setdate*(3)
