Arduino-RTC
Real-Time Clock (RTC) library for Arduino
set_zone.cpp File Reference
#include "time.h"
Include dependency graph for set_zone.cpp:

Go to the source code of this file.

Functions

void set_zone (int32_t z)
 
int32_t get_zone ()
 

Variables

int32_t __utc_offset = 0L
 

Function Documentation

int32_t get_zone ( )

Definition at line 40 of file set_zone.cpp.

void set_zone ( int32_t  )

Set the 'time zone'. The parameter is given in seconds East of the Prime Meridian. Example for New York City:

1  set_zone(-5 *
2 ONE_HOUR);

If the time zone is not set, the time system will operate in UTC only.

Definition at line 34 of file set_zone.cpp.

Variable Documentation

int32_t __utc_offset = 0L

Definition at line 31 of file set_zone.cpp.