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

7
LINES

< > BotCompany Repo | #1032394 // formatUTCWithSeconds_24

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

Transpiled version (34L) is out of date.

1  
import java.text.*;
2  
3  
static S formatUTCWithSeconds_24(long time default now()) {
4  
  SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
5  
  sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
6  
  ret sdf.format(time) + " UTC";
7  
}

Author comment

Began life as a copy of #1011865

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032394
Snippet name: formatUTCWithSeconds_24
Eternal ID of this version: #1032394/3
Text MD5: d8263ee190c70ed0b9abd199415652c7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-03 01:44:07
Source code size: 228 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 153 / 229
Version history: 2 change(s)
Referenced in: [show references]