2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: repeat.h /main/4 1995/11/09 12:49:18 rswiston $ */
25 * (c) Copyright 1993, 1994 Hewlett-Packard Company
26 * (c) Copyright 1993, 1994 International Business Machines Corp.
27 * (c) Copyright 1993, 1994 Novell, Inc.
28 * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
34 #include <EUSCompat.h>
42 extern int monthdays[];
44 extern void init_time P(());
46 extern time_t _DtCms_closest_tick_v4 P((time_t target,
51 extern time_t _DtCms_last_tick_v4 P((time_t ftick,
55 extern time_t _DtCms_next_tick_v4 P((time_t tick, Period_4 period));
57 extern time_t _DtCms_prev_tick_v4 P((time_t tick, Period_4 period));
59 extern time_t _DtCms_first_tick_v4 P((time_t t, Period_4 period, int ordinal));
61 extern void _DtCms_adjust_appt_startdate P((Appt_4 *appt));
63 extern time_t next_nmins P((time_t t, int m));
65 extern time_t next_ndays P((time_t t, int n));
67 extern int _DtCms_marked_4_cancellation P((Appt_4 *a, int i));
69 extern int _DtCms_get_new_ntimes_v4 P((Period_4 period,
73 extern int _DtCms_get_ninstance_v4 P((Appt_4 *appt));
75 extern int _DtCms_in_repeater P((Id_4 *key,
77 boolean_t dont_care_cancel));
79 extern int monthlength P((Tick));
80 extern int leapyr P((int));
81 extern int fdom P((Tick));
82 extern int ldom P((Tick));
85 * returns the tick of the beginning of the day
87 extern time_t _DtCmsBeginOfDay(time_t t);
90 * return the tick since begin of day
92 extern time_t _DtCmsTimeOfDay(time_t t);
95 * routines to deal with recurrence rule and exception dates
97 extern boolean_t _DtCmsInExceptionList P((cms_entry *eptr, time_t tick));