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

10
LINES

< > BotCompany Repo | #1012861 // dateWithSecondsGMT

JavaX fragment (include)

import java.text.*;

static S dateWithSecondsGMT(long time) {
  SimpleDateFormat format = simpleDateFormat_GMT("yyyy/MM/dd");
  ret format.format(time) + " " + formatGMTWithSeconds_24(time);
}

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

Author comment

Began life as a copy of #1012292

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012861
Snippet name: dateWithSecondsGMT
Eternal ID of this version: #1012861/1
Text MD5: 8dd259853e347bc1cae8a4c16219378b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-14 21:35:59
Source code size: 269 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 397 / 419
Referenced in: [show references]