FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Aether/include/time_conversion.h at develop · AetherModel/Aether · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
AetherModel
/
Aether
Public
Notifications
You must be signed in to change notification settings
Fork
31
Star
25
Code
Issues
21
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Aether
/
include
/
time_conversion.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
54 lines (44 loc) · 1.91 KB
Breadcrumbs
Aether
/
include
/
time_conversion.h
Copy path
File metadata and controls
54 lines (44 loc) · 1.91 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
48
49
50
51
52
53
54
//
Copyright 2020, the Aether Development Team (see doc/dev_team.md for members)
//
Full license can be found in License.md
#
ifndef
INCLUDE_TIME_CONVERSION_H_
#
define
INCLUDE_TIME_CONVERSION_H_
/*
*************************************************************
* These are functions that convert time between different systems.
* - real time is seconds past January 1, 1965 00 UT
* - integer time is a vector of:
* (year, month, day, hour, minute, second, millisecond)
* - jday is julian day, which is the day of year (jan 1 = 1)
*************************************************************
*/
#
include
<
vector
>
/*
*************************************************************
\brief convert time from integer array to day of year (jday)
\param itime integer vector (y,m,d,h,m,s,ms)
*
*/
double
time_int_to_jday
(std::vector<
int
> itime);
/*
*************************************************************
\brief converts year, month, day to day of year
\param year the year
\param month the month (1 = jan)
\param day day of the month (1 = 1)
*
*/
int
day_of_year
(
int
year,
int
month,
int
day);
/*
*************************************************************
\brief converts integer vector time to real time
\param itime integer vector (y,m,d,h,m,s,ms)
*
*/
double
time_int_to_real
(std::vector<
int
> itime);
/*
*************************************************************
\brief converts real time to an integer vector (y,m,d,h,m,s,ms)
\param timereal seconds past January 1, 1965 00 UT
*
*/
std::vector<
int
>
time_real_to_int
(
double
timereal);
/*
*************************************************************
\brief runs a test on the time conversion routines.
*
*/
int
test_time_routines
();
/*
*************************************************************
\brief displays the integer time array
\param itime integer vector (y,m,d,h,m,s,ms)
*
*/
void
display_itime
(std::vector<
int
> itime);
#
endif
//
INCLUDE_TIME_CONVERSION_H_
Back
|
FazBrowse Home
|
New Git URL