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

13
LINES

< > BotCompany Repo | #1017893 // timeInZone_24 (HH:MM)

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

Libraryless. Click here for Pure Java version (59L/1K).

import java.text.*;

static S timeInZone_24(long time, S timeZone) {
  ret timeInZone_24(time, getTimeZone(timeZone));
}

static S timeInZone_24(long time, TimeZone timeZone) {
  ret simpleDateFormat("HH:mm", timeZone).format(time);
}

static S timeInZone_24(S timeZone) {
  ret timeInZone_24(now(), timeZone);
}

Author comment

Began life as a copy of #1012820

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017893
Snippet name: timeInZone_24 (HH:MM)
Eternal ID of this version: #1017893/4
Text MD5: 096b687016b732e8f9c2601fe592a506
Transpilation MD5: 3726c9b79e4ee7050c653d976a72c189
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-29 16:47:11
Source code size: 324 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 342 / 435
Version history: 3 change(s)
Referenced in: [show references]