/usr/include/gmt/gmt_time.h is in libgmt-dev 5.2.1+dfsg-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | /*--------------------------------------------------------------------
* $Id: gmt_time.h 15178 2015-11-06 10:45:03Z fwobbe $
*
* Copyright (c) 1991-2015 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
* See LICENSE.TXT file for copying and redistribution conditions.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3 or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* Contact info: gmt.soest.hawaii.edu
*--------------------------------------------------------------------*/
/*
* gmt_time.h contains definitions of structures dealing with time.
*
* Author: Paul Wessel
* Date: 01-OCT-2009
* Version: 5 API
*/
/*!
* \file gmt_time.h
* \brief Definitions of structures dealing with time.
*/
#ifndef _GMT_TIME_H
#define _GMT_TIME_H
/*--------------------------------------------------------------------
* GMT TIME STRUCTURES
*--------------------------------------------------------------------*/
struct GMT_TIME_SYSTEM {
double epoch_t0; /* Rata_die fraction (in days since epoch, 0 <= t0 < 1) */
double scale; /* Converts user units to seconds */
double i_scale; /* Converts seconds to user units (= 1.0/scale) */
int64_t rata_die; /* Rata die number of epoch */
char epoch[GMT_LEN64]; /* User-defined epoch for time */
char unit; /* User-defined time unit */
};
#endif /* _GMT_TIME_H */
|