PLplot 5.15.0
Loading...
Searching...
No Matches
qsastime.h
Go to the documentation of this file.
1#ifndef _QSASTIME_H_
2#define _QSASTIME_H_
3//
4// This software originally contributed under the LGPL in January 2009 to
5// PLplot by the
6// Cluster Science Centre
7// QSAS team,
8// Imperial College, London
9// Copyright (C) 2009 Imperial College, London
10//
11// This file is part of PLplot.
12//
13// PLplot is free software; you can redistribute it and/or modify
14// it under the terms of the GNU Library General Public License as published
15// by the Free Software Foundation; either version 2 of the License, or
16// (at your option) any later version.
17//
18// PLplot is distributed in the hope that it will be useful,
19// but WITHOUT ANY WARRANTY; without even the implied warranty of
20// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21// GNU Library General Public License for more details.
22//
23// You should have received a copy of the GNU Library General Public License
24// along with PLplot; if not, write to the Free Software
25// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26//
27//
28
29// MJD measures from the start of 17 Nov 1858
30
31// These utilities use the Gregorian calendar after 4 Oct 1582 (Julian) i.e. from 15 Oct 1582 Gregorian
32// Note C libraries use Gregorian only from 14 Sept 1752
33// More detailed discussion can be found at http://aa.usno.navy.mil/data/docs/JulianDate.php
34// These routines have been compared with the results of the US Naval Observatory online converter.
35// Modified Julian Date (MJD) = Julian Date (JD) - 2400000.5
36//
37// In all routines, specifying a day, hour, minute or second field greater than would be valid is
38// handled with modulo arithmetic and safe.
39// Thus 2006-12-32 00:62:00.0 will safely, and correctly, be treated as 2007-01-01 01:02:00.0
40//
41//
42
43#include <stdio.h>
44#include <stdlib.h>
45#include <string.h>
46// include header file for dll definitions
47#include "qsastimedll.h"
48
49struct QSASConfigStruct;
51
52// externally accessible functions
53QSASTIMEDLLIMPEXP void configqsas( double scale, double offset1, double offset2, int ccontrol, int ifbtime_offset, int year, int month, int day, int hour, int min, double sec, QSASConfig **qsasconfig );
54
55QSASTIMEDLLIMPEXP void closeqsas( QSASConfig **qsasconfig );
56
57QSASTIMEDLLIMPEXP int ctimeqsas( int year, int month, int day, int hour, int min, double sec, double * ctime, QSASConfig *qsasconfig );
58
59QSASTIMEDLLIMPEXP void btimeqsas( int *year, int *month, int *day, int *hour, int *min, double *sec, double ctime, QSASConfig *qsasconfig );
60
61QSASTIMEDLLIMPEXP size_t strfqsas( char * buf, size_t len, const char *format, double ctime, QSASConfig *qsasconfig );
62
63#endif
#define min(x, y)
Definition: nnpi.c:87
QSASTIMEDLLIMPEXP size_t strfqsas(char *buf, size_t len, const char *format, double ctime, QSASConfig *qsasconfig)
Definition: qsastime.c:1271
QSASTIMEDLLIMPEXP void configqsas(double scale, double offset1, double offset2, int ccontrol, int ifbtime_offset, int year, int month, int day, int hour, int min, double sec, QSASConfig **qsasconfig)
Definition: qsastime.c:1142
QSASTIMEDLLIMPEXP int ctimeqsas(int year, int month, int day, int hour, int min, double sec, double *ctime, QSASConfig *qsasconfig)
Definition: qsastime.c:1210
QSASTIMEDLLIMPEXP void closeqsas(QSASConfig **qsasconfig)
Definition: qsastime.c:1200
QSASTIMEDLLIMPEXP void btimeqsas(int *year, int *month, int *day, int *hour, int *min, double *sec, double ctime, QSASConfig *qsasconfig)
Definition: qsastime.c:1233
#define QSASTIMEDLLIMPEXP
Definition: qsastimedll.h:40
double offset2
Definition: qsastimeP.h:42
double offset1
Definition: qsastimeP.h:42
static char buf[200]
Definition: tclAPI.c:873