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

11
LINES

< > BotCompany Repo | #1012820 // localTime_24 (HH:MM)

JavaX fragment (include)

1  
import java.text.*;
2  
3  
static S localTime_24(long time) {
4  
  SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
5  
  sdf.setTimeZone(localTimeZone());
6  
  ret sdf.format(time);
7  
}
8  
9  
static S localTime_24() {
10  
  ret localTime_24(now());
11  
}

Author comment

Began life as a copy of #1008488

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012820
Snippet name: localTime_24 (HH:MM)
Eternal ID of this version: #1012820/4
Text MD5: 4db382c42a078024b18517000a67dc93
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-07 21:21:19
Source code size: 239 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 509 / 707
Version history: 3 change(s)
Referenced in: [show references]