libkcal
astime.h
Go to the documentation of this file.00001 /* 00002 * Copyright (c) 1986-2000, Hiram Clawson 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or 00006 * without modification, are permitted provided that the following 00007 * conditions are met: 00008 * 00009 * Redistributions of source code must retain the above 00010 * copyright notice, this list of conditions and the 00011 * following disclaimer. 00012 * 00013 * Redistributions in binary form must reproduce the 00014 * above copyright notice, this list of conditions and 00015 * the following disclaimer in the documentation and/or 00016 * other materials provided with the distribution. 00017 * 00018 * Neither name of The Museum of Hiram nor the names of 00019 * its contributors may be used to endorse or promote products 00020 * derived from this software without specific prior 00021 * written permission. 00022 * 00023 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 00024 * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 00025 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00026 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 00027 * IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 00028 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00029 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00030 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00031 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 00032 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 00033 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 00034 * THE POSSIBILITY OF SUCH DAMAGE. 00035 */ 00036 00042 #ifndef _astime_h_ 00043 #define _astime_h_ 00044 00045 typedef struct ut_instant { 00046 double j_date; 00047 long year; 00048 int month; 00049 int day; 00050 int i_hour; 00051 int i_minute; 00052 int i_second; 00053 double d_hour; 00054 double d_minute; 00055 double d_second; 00056 int weekday; 00057 int day_of_year; 00058 } UTinstant, * UTinstantPtr; 00059 00060 /* Functions in caldate.c */ 00061 00062 long caldat( UTinstantPtr ); 00063 double juldat( UTinstantPtr ); 00065 #endif /* _astime_h_ */