/* Convert a UNIX timestamp to a date in a given time zone. 
The provided UNIX timestamp is converted to the corresponding time in the provided time zone. */
void calendar_timestamp_to_date_tz(uint32_t timestamp, int8_t hour, uint8_t min, struct calendar_date *date_out)
/* Convert a UNIX timestamp to a date in a given time zone. 
The provided UNIX timestamp is converted to the corresponding time in the provided time zone. */
void calendar_timestamp_to_date_tz(uint32_t timestamp, int8_t hour, uint8_t min, struct calendar_date *date_out)
{
	if (hour >= 0) {
		calendar_timestamp_to_date((timestamp + (SECS_PER_HOUR * hour) +
				(SECS_PER_MINUTE * min)), date_out);
	} else {
		calendar_timestamp_to_date((timestamp + (SECS_PER_HOUR * hour) -
				(SECS_PER_MINUTE * min)), date_out);
	}
}