libtime++: Date and time calculation
ctime_setdoy.c
Go to the documentation of this file.
1 /* this is <ctime_setdoy.c>
2  * ----------------------------------------------------------------------------
3  *
4  * Copyright 2000 by Thomas Forbriger (IfG Stuttgart)
5  *
6  * ----
7  * libtime is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  * ----
21  *
22  * C-wrapper for FORTRAN time_setdoy libtime kernel function
23  *
24  * REVISIONS and CHANGES
25  * 06/08/2000 V1.0 Thomas Forbriger
26  * 14/12/2007 V1.1 use the Fortran integer type defined in libtime.h
27  * see there
28  * 17/12/2007 V1.2 discarded time_Tu::farray
29  * introduced typedef timeint
30  *
31  * ============================================================================
32  */
33 
34 #include <libtime.h>
35 
36 void time_setdoy(timeint day, timeint month, time_Ts *Pdate)
37 {
38  time_Tu *u;
39  extern int time_setdoy__();
40  u=(time_Tu *)Pdate;
41  time_setdoy__(&day, &month, &u->array);
42 } /* time_setdoy */
43 
44 /* ----- END OF ctime_setdoy.c ----- */
integer array[7]
Definition: libtime.h:136
void time_setdoy(timeint day, timeint month, time_Ts *Pdate)
Definition: ctime_setdoy.c:36
integer timeint
Definition: libtime.h:77