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

9
LINES

< > BotCompany Repo | #1029691 // hhmm - hour + minute as string

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

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

1  
import java.text.SimpleDateFormat;
2  
3  
sS hhmm() {
4  
  ret hhmm(now());
5  
}
6  
7  
sS hhmm(long time) {
8  
  ret new SimpleDateFormat("HHmm").format(time);
9  
}

Author comment

Began life as a copy of #1006134

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029691
Snippet name: hhmm - hour + minute as string
Eternal ID of this version: #1029691/4
Text MD5: d8bfcf7d9567cd48488d2d0590b65069
Transpilation MD5: 99ee4a55960659b099450782b09c065c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-07 14:50:58
Source code size: 151 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 216 / 276
Version history: 3 change(s)
Referenced in: [show references]