Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
NEUpanning committed May 17, 2024
1 parent c467555 commit fa05922
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions velox/type/Timestamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,13 @@ struct Timestamp {
// Same as above, but accepts PrestoDB time zone ID.
void toGMT(int16_t tzID);

// Assuming the timestamp represents a GMT time, converts it to the time at
// the same moment at zone.
// If allowOverflow is true, integer overflow is allowed in converting
// timestamp to TimePoint, otherwise we throw.
// Example: Timestamp ts{0, 0};
// ts.Timezone("America/Los_Angeles");
// ts.toString() returns December 31, 1969 16:00:00
/// Assuming the timestamp represents a GMT time, converts it to the time at
/// the same moment at zone.
/// @param allowOverflow If true, integer overflow is allowed when converting
/// timestamp to TimePoint. Otherwise, user exception is thrown for overflow.
/// Example: Timestamp ts{0, 0};
/// ts.Timezone("America/Los_Angeles");
/// ts.toString() returns December 31, 1969 16:00:00
void toTimezone(const date::time_zone& zone, bool allowOverflow = false);

// Same as above, but accepts PrestoDB time zone ID.
Expand Down

0 comments on commit fa05922

Please sign in to comment.