Libraryless. Click here for Pure Java version (59L/1K).
1 | import java.text.*; |
2 | |
3 | static S timeInZone_24(long time, S timeZone) { |
4 | ret timeInZone_24(time, getTimeZone(timeZone)); |
5 | } |
6 | |
7 | static S timeInZone_24(long time, TimeZone timeZone) { |
8 | ret simpleDateFormat("HH:mm", timeZone).format(time); |
9 | } |
10 | |
11 | static S timeInZone_24(S timeZone) { |
12 | ret timeInZone_24(now(), timeZone); |
13 | } |
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: | 344 / 438 |
Version history: | 3 change(s) |
Referenced in: | [show references] |