Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1036187 // growTimestampRange - grows to both sides

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9259L/51K).

static TimestampRange growTimestampRange(TimestampRange r, long amount) {
  ret r == null ?: new TimestampRange(r.start.unixDate()-amount, r.end.unixDate()+amount);
}

Author comment

Began life as a copy of #1035706

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036187
Snippet name: growTimestampRange - grows to both sides
Eternal ID of this version: #1036187/2
Text MD5: b185117068e04125bc15ead5a596964a
Transpilation MD5: ebc39a9c7ffea8eedfd09b2a69b963bb
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-10 19:59:42
Source code size: 168 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 184
Version history: 1 change(s)
Referenced in: [show references]