Skip to content

Commit

Permalink
fix seconds add
Browse files Browse the repository at this point in the history
  • Loading branch information
LiBinfeng-01 committed Sep 18, 2024
1 parent 3a187e2 commit b922cc8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public <R, C> R accept(ExpressionVisitor<R, C> visitor, C context) {
return visitor.visitDateV2Literal(this, context);
}

public Expression plusSeconds(long seconds) {
return fromJavaDateType(toJavaDateType().plusDays(seconds));
}

public Expression plusDays(long days) {
return fromJavaDateType(toJavaDateType().plusDays(days));
}
Expand Down

0 comments on commit b922cc8

Please sign in to comment.