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

6
LINES

< > BotCompany Repo | #1032395 // dateWithSecondsUTC

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

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

import java.text.*;

sS dateWithSecondsUTC(long time default now()) {
  SimpleDateFormat format = simpleDateFormat_UTC("yyyy/MM/dd");
  ret format.format(time) + " " + formatUTCWithSeconds_24(time);
}

Author comment

Began life as a copy of #1012861

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032395
Snippet name: dateWithSecondsUTC
Eternal ID of this version: #1032395/1
Text MD5: c57d69e096e1b2438b3d9b44de29f774
Transpilation MD5: 302be42971a820a5006802d2afa8b54b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-02 16:28:56
Source code size: 205 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 182 / 261
Referenced in: [show references]