Commit abbf275c authored by Cédric Traizet's avatar Cédric Traizet

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
......@@ -281,7 +281,7 @@ struct OTBMetadata_EXPORT Time : tm
int GetYear() const;
int GetHour() const;
int GetMinute() const;
int GetSecond() const;
double GetSecond() const;
///@}
};
......
......@@ -222,7 +222,7 @@ int Time::GetMinute() const
return tm_min;
}
int Time::GetSecond() const
double Time::GetSecond() const
{
return tm_sec + frac_sec;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment