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

7
LINES

< > BotCompany Repo | #1034367 // formatUTCWithMS_24

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

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

import java.text.*;

static S formatUTCWithMS_24(long time default now()) {
  var sdf = new SimpleDateFormat("HH:mm:ss.SSSS");
  sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
  ret sdf.format(time) + " UTC";
}

Author comment

Began life as a copy of #1032394

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034367
Snippet name: formatUTCWithMS_24
Eternal ID of this version: #1034367/1
Text MD5: 6c77bcc1ce6577ffbcb6521e9084b9c5
Transpilation MD5: 494d7bc38f2ac74bbb89455c34fc0219
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-03 08:57:21
Source code size: 215 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 200
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)