Function

ECaltime_week_begin_with_zone

Declaration [src]

time_t
time_week_begin_with_zone (
  time_t time,
  gint week_start_day,
  const ICalTimezone* zone
)

Description [src]

Returns the start of the week containing the given time_t, using the given timezone. week_start_day should use the same values as mktime(), i.e. 0 (Sun) to 6 (Sat). NOTE: this function is only here to make the transition to the timezone functions easier. New code should use ICalTime values and i_cal_time_adjust() to add or subtract days, hours, minutes & seconds.

Parameters

time

Type: time_t

A time_t value.

week_start_day

Type: gint

Day to use as the starting of the week.

zone

Type: None

Timezone to use.

The data is owned by the caller of the function.

Return value

Type: time_t

The beginning of the week.