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

5
LINES

< > BotCompany Repo | #1022538 // datePlusDays_YYYYslashMMslashDD

JavaX fragment (include)

sS datePlusDays_YYYYslashMMslashDD(S date1, int days) {
  long ms = parseYYYYslashMMslashDD(date1);
  ms += daysToMS(days+1/12.0); // account for daylight savings
  ret ymdWithSlashes(ms);
}

Author comment

Began life as a copy of #1022336

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, lnbujpyubztb, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022538
Snippet name: datePlusDays_YYYYslashMMslashDD
Eternal ID of this version: #1022538/1
Text MD5: e707e09399b9bd29c214e6054ed160c7
Author: stefan
Category: javax / date
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-20 13:21:29
Source code size: 194 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 225
Referenced in: [show references]