Changed license terms to the plain LGPL thru-out.
[bpt/guile.git] / libguile / stime.h
1 /* classes: h_files */
2
3 #ifndef SCM_STIME_H
4 #define SCM_STIME_H
5
6 /* Copyright (C) 1995,1996,1997,1998,2000, 2003 Free Software Foundation, Inc.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 \f
24
25 #include "libguile/__scm.h"
26
27 \f
28
29 /* This should be figured out by autoconf. */
30 #if ! defined(SCM_TIME_UNITS_PER_SECOND) && defined(CLK_TCK)
31 # define SCM_TIME_UNITS_PER_SECOND ((int) CLK_TCK)
32 #endif
33 #if ! defined(SCM_TIME_UNITS_PER_SECOND) && defined(CLOCKS_PER_SEC)
34 # define SCM_TIME_UNITS_PER_SECOND ((int) CLOCKS_PER_SEC)
35 #endif
36 #if ! defined(SCM_TIME_UNITS_PER_SECOND)
37 # define SCM_TIME_UNITS_PER_SECOND 60
38 #endif
39
40 \f
41 SCM_API long scm_c_get_internal_run_time (void);
42 SCM_API SCM scm_get_internal_real_time (void);
43 SCM_API SCM scm_get_internal_run_time (void);
44 SCM_API SCM scm_current_time (void);
45 SCM_API SCM scm_gettimeofday (void);
46 SCM_API SCM scm_localtime (SCM time, SCM zone);
47 SCM_API SCM scm_gmtime (SCM time);
48 SCM_API SCM scm_mktime (SCM sbd_time, SCM zone);
49 SCM_API SCM scm_tzset (void);
50 SCM_API SCM scm_times (void);
51 SCM_API SCM scm_strftime (SCM format, SCM stime);
52 SCM_API SCM scm_strptime (SCM format, SCM string);
53 SCM_API void scm_init_stime (void);
54
55 #endif /* SCM_STIME_H */
56
57 /*
58 Local Variables:
59 c-file-style: "gnu"
60 End:
61 */