PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
utCalendar2_cal.h
Go to the documentation of this file.
1 /*
2  The CalCalcs routines, a set of C-language routines to perform
3  calendar calculations.
4 
5  Version 1.0, released 7 January 2010
6 
7  Copyright (C) 2010 David W. Pierce, dpierce@ucsd.edu
8 
9  This program is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #define UT_ENOINIT -10
24 #define UT_EINVALID -11
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 int utCalendar2_cal( double val, ut_unit *dataunits, int *year, int *month, int *day, int *hour,
31  int *minute, double *second, const char *calendar_name );
32 int utInvCalendar2_cal( int year, int month, int day, int hour, int minute, double second,
33  ut_unit *user_unit, double *value, const char *calendar_name );
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
int utCalendar2_cal(double val, ut_unit *dataunits, int *year, int *month, int *day, int *hour, int *minute, double *second, const char *calendar_name)
int utInvCalendar2_cal(int year, int month, int day, int hour, int minute, double second, ut_unit *user_unit, double *value, const char *calendar_name)