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

8
LINES

< > BotCompany Repo | #1018681 // timeToNextLocalHour - in ms

JavaX fragment (include)

static long timeToNextLocalHour() {
  ret timeToNextLocalHour(now());
}

static long timeToNextLocalHour(long now) {
  L<S> l = splitAtSpace(simpleDateFormat_local("mm ss SSSS").format(now));
  ret 60*60000-((parseInt(first(l))*60 + parseInt(second(l)))*1000 + parseInt(third(l)));
}

Author comment

Began life as a copy of #1016171

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018681
Snippet name: timeToNextLocalHour - in ms
Eternal ID of this version: #1018681/2
Text MD5: 5f0b3c04dcfd8c622a99c14a32fbef5a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-09 23:02:21
Source code size: 290 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 237 / 278
Version history: 1 change(s)
Referenced in: [show references]