RAVE
rave_datetime.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------
2Copyright (C) 2009 Swedish Meteorological and Hydrological Institute, SMHI,
3
4This file is part of RAVE.
5
6RAVE is free software: you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11RAVE is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License
17along with RAVE. If not, see <http://www.gnu.org/licenses/>.
18------------------------------------------------------------------------*/
26#ifndef RAVE_DATETIME_H
27#define RAVE_DATETIME_H
28
29#include "rave_object.h"
30
35
40
47int RaveDateTime_setTime(RaveDateTime_t* dt, const char* value);
48
55
62int RaveDateTime_setDate(RaveDateTime_t* dt, const char* value);
63
70
76
77#endif /* RAVE_DATETIME_H */
int RaveDateTime_setTime(RaveDateTime_t *dt, const char *value)
Sets the nominal time.
Definition rave_datetime.c:103
const char * RaveDateTime_getTime(RaveDateTime_t *dt)
Returns the nominal time.
Definition rave_datetime.c:119
int RaveDateTime_setDate(RaveDateTime_t *dt, const char *value)
Sets the nominal date.
Definition rave_datetime.c:128
const char * RaveDateTime_getDate(RaveDateTime_t *dt)
Returns the nominal date.
Definition rave_datetime.c:144
int RaveDateTime_compare(RaveDateTime_t *self, RaveDateTime_t *other)
Compares self with another datetime object.
Definition rave_datetime.c:163
RaveCoreObjectType RaveDateTime_TYPE
Type definition to use when creating a rave object.
Definition rave_datetime.c:201
Generic implementation of an object that is used within rave.
Represents a date time instance.
Definition rave_datetime.c:42
The rave object type definition.
Definition rave_object.h:52