bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
date_proc.h
1
2// -*- mode: c++; c-basic-offset:4 -*-
3
4// This file is part of ff_handler a FreeForm API handler for the OPeNDAP
5// DAP2 data server.
6
7// Copyright (c) 2005 OPeNDAP, Inc.
8// Author: James Gallagher <jgallagher@opendap.org>
9//
10// This is free software; you can redistribute it and/or modify it under the
11// terms of the GNU Lesser General Public License as published by the Free
12// Software Foundation; either version 2.1 of the License, or (at your
13// option) any later version.
14//
15// This software is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18// License for more details.
19//
20// You should have received a copy of the GNU Lesser General Public
21// License along with this library; if not, write to the Free Software
22// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23//
24// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25
26
27// (c) COPYRIGHT URI/MIT 1998
28// Please read the full copyright statement in the file COPYRIGHT.
29//
30// Authors:
31// jhrg,jimg James Gallagher (jgallagher@gso.uri.edu)
32
33int is_leap(int year);
34double days_in_year(int year);
35long julian_day(int year, int month, int day);
36void gregorian_date(double jd, int *year, int *month, int *day, int *hours,
37 int *minutes, double *sec);
38int month_day_to_days(int year, int month, int day);
39void days_to_month_day(int year, int ddd, int *month, int *day);
40
41int dayofweek(double j);
42int days_in_month(int year, int month);
43
44// $Log: date_proc.h,v $
45// Revision 1.5 2001/09/28 23:19:43 jimg
46// Merged with 3.2.3.
47//
48// Revision 1.4.2.2 2001/05/23 20:11:22 dan
49// Modified to support year/month date representations,
50// and to support ISO8601 output formats.
51//
52// Revision 1.4.2.1 2001/05/23 18:14:53 jimg
53// Merged with changes on the release-3-1 branch. This apparently was not
54// done corrrectly the first time around.
55//
56// Revision 1.4 2000/10/11 19:37:56 jimg
57// Moved the CVS log entries to the end of files.
58// Changed the definition of the read method to match the dap library.
59// Added exception handling.
60// Added exceptions to the read methods.
61//
62// Revision 1.3 2000/08/31 22:16:55 jimg
63// Merged with 3.1.7
64//
65// Revision 1.2.24.1 2000/08/03 20:16:27 jimg
66// The is_leap and days_in_year functions are now externally visible. This
67// should be the only place where we calculate leap year stuff.
68//
69// Revision 1.2 1998/11/10 17:46:56 jimg
70// Added this log.
71//