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).

import java.text.SimpleDateFormat;

sS hhmm() {
  ret hhmm(now());
}

sS hhmm(long time) {
  ret new SimpleDateFormat("HHmm").format(time);
}

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: 217 / 278
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)