WSL/SLF GitLab Repository
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
ff2b00ed
Commit
ff2b00ed
authored
Jan 10, 2014
by
Thomas Egger
Browse files
Date class: correcting epsilon to 1/24/3600.025 - this seems to be numerically sound, need to test!
parent
0bb9bf96
Changes
1
Hide whitespace changes
Inline
Side-by-side
meteoio/Date.cc
View file @
ff2b00ed
...
...
@@ -32,7 +32,7 @@ const float Date::Unix_offset = 2440587.5; ///<offset between julian date and Un
const
float
Date
::
Excel_offset
=
2415018.5
;
///<offset between julian date and Excel dates (note that excel invented some days...)
const
float
Date
::
Matlab_offset
=
1721058.5
;
///<offset between julian date and Matlab dates
const
double
Date
::
epsilon
=
1.
/
(
24.
*
360
1.
);
///< minimum difference between two dates. 1 second in units of days
,
360
1
is intentional
const
double
Date
::
epsilon
=
1.
/
(
24.
*
360
0.025
);
///< minimum difference between two dates. 1 second in units of days
.
360
0.025
is intentional
//NOTE: For the comparison operators, we assume that dates are positive so we can bypass a call to abs()
// CONSTUCTORS
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment