Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hey-kong committed Jun 28, 2022
1 parent eab7c7b commit d49f3c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbms/src/Common/MyDuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ String MyDuration::toString() const
return fmt::format(fmt_str, sign > 0 ? "" : "-", hour, minute, second, frac_str);
}

UInt64 calcSeconds(int hour, int minute, int second)
UInt64 calcSeconds(Int32 hour, Int32 minute, Int32 second)
{
return hour * 3600 + minute * 60 + second;
}
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Common/MyDuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ class MyDuration
};

// returns seconds since '00:00:00'
UInt64 calcSeconds(int hour, int minute, int second);
UInt64 calcSeconds(Int32 hour, Int32 minute, Int32 second);

} // namespace DB

0 comments on commit d49f3c4

Please sign in to comment.