Libical API Documentation 3.1
astime.h
Go to the documentation of this file.
1/*
2 * This work is based on work from Hiram Clawson and has been modified to the
3 * needs of the libical project. The original copyright notice is as follows:
4 */
5/*
6 * Copyright (c) 1986-2000, Hiram Clawson
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or
10 * without modification, are permitted provided that the following
11 * conditions are met:
12 *
13 * Redistributions of source code must retain the above
14 * copyright notice, this list of conditions and the
15 * following disclaimer.
16 *
17 * Redistributions in binary form must reproduce the
18 * above copyright notice, this list of conditions and
19 * the following disclaimer in the documentation and/or
20 * other materials provided with the distribution.
21 *
22 * Neither name of The Museum of Hiram nor the names of
23 * its contributors may be used to endorse or promote products
24 * derived from this software without specific prior
25 * written permission.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
28 * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
29 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31 * IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
32 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
33 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
38 * THE POSSIBILITY OF SUCH DAMAGE.
39 */
40/*
41 * The modifications made are licensed as follows (to distinguish between
42 * the original code and the modifications made, refer to the source code
43 * history):
44 */
45 /*======================================================================
46
47 SPDX-FileCopyrightText: 2018, Markus Minichmayr
48 https://tapkey.com
49
50 SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
51 ========================================================================*/
52
58#ifndef ICAL_ASTIME_H
59#define ICAL_ASTIME_H
60
61#include "libical_deprecated.h"
62#include "libical_ical_export.h"
63
64typedef struct ut_instant
65{
66 double j_date;
67 long year;
68 int month;
69 int day;
70 int i_hour;
73 double d_hour;
74 double d_minute;
75 double d_second;
76 int weekday;
79
80/* Functions in caldate.c */
81
85LIBICAL_ICAL_EXPORT LIBICAL_DEPRECATED(long caldat(UTinstantPtr));
86
90LIBICAL_ICAL_EXPORT LIBICAL_DEPRECATED(double juldat(UTinstantPtr));
91
92typedef struct ut_instant_int
93{
94 long j_date0;
95 long year;
96 int month;
97 int day;
98 int weekday;
101
102/* Functions in caldate.c */
103
123
140
141#endif
double juldat(UTinstantPtr))
void juldat_int(UTinstantIntPtr)
long caldat(UTinstantPtr))
void caldat_int(UTinstantIntPtr)
Definition: astime.h:93
int day
Definition: astime.h:97
int day_of_year
Definition: astime.h:99
long j_date0
Definition: astime.h:94
long year
Definition: astime.h:95
int month
Definition: astime.h:96
int weekday
Definition: astime.h:98
Definition: astime.h:65
int month
Definition: astime.h:68
int day
Definition: astime.h:69
int weekday
Definition: astime.h:76
int day_of_year
Definition: astime.h:77
double d_hour
Definition: astime.h:73
long year
Definition: astime.h:67
double d_second
Definition: astime.h:75
int i_minute
Definition: astime.h:71
double d_minute
Definition: astime.h:74
double j_date
Definition: astime.h:66
int i_hour
Definition: astime.h:70
int i_second
Definition: astime.h:72