Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
abbf275c
Commit
abbf275c
authored
Nov 30, 2020
by
Cédric Traizet
Browse files
BUG: change return type to double in GetSecond, as it can return a fraction of second
parent
e0423e81
Pipeline
#6312
passed with stages
in 89 minutes and 3 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Modules/Core/Metadata/include/otbMetaDataKey.h
View file @
abbf275c
...
...
@@ -281,7 +281,7 @@ struct OTBMetadata_EXPORT Time : tm
int
GetYear
()
const
;
int
GetHour
()
const
;
int
GetMinute
()
const
;
int
GetSecond
()
const
;
double
GetSecond
()
const
;
///@}
};
...
...
Modules/Core/Metadata/src/otbMetaDataKey.cxx
View file @
abbf275c
...
...
@@ -222,7 +222,7 @@ int Time::GetMinute() const
return
tm_min
;
}
int
Time
::
GetSecond
()
const
double
Time
::
GetSecond
()
const
{
return
tm_sec
+
frac_sec
;
}
...
...
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