URI: 
       tutCalendar2_cal.h - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
  HTML git clone git://src.adamsgaard.dk/pism
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
       tutCalendar2_cal.h (1292B)
       ---
            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