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

9
LINES

< > BotCompany Repo | #1006134 // hms - hour, minute, second

JavaX fragment (include)

import java.text.SimpleDateFormat;

static S hms() {
  ret hms(now());
}

static S hms(long time) {
  ret new SimpleDateFormat("HHmmss").format(time);
}

Author comment

Began life as a copy of #1004679

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006134
Snippet name: hms - hour, minute, second
Eternal ID of this version: #1006134/1
Text MD5: 0ad4d605539f7cdc188735ea43ead290
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-28 13:24:24
Source code size: 162 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 572 / 581
Referenced in: #1006302 - hmsWithColons - hour, minute, second in "hh:mm:ss"
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029691 - hhmm - hour + minute as string