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

14
LINES

< > BotCompany Repo | #1013844 - localDateWithMilliseconds

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

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

import java.text.*;

sS localDateWithMilliseconds(Date time) {
  ret localDateWithMilliseconds(time.getTime());
}

sS localDateWithMilliseconds(long time) {
  SimpleDateFormat format = simpleDateFormat_local("yyyy/MM/dd HH:mm:ss''SSSS");
  ret format.format(time);
}

sS localDateWithMilliseconds() {
  ret localDateWithMilliseconds(now());
}

Author comment

Began life as a copy of #1012861

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: #1013844
Snippet name: localDateWithMilliseconds
Eternal ID of this version: #1013844/5
Text MD5: 3aff54296450eef2eff64b6bf1358faa
Transpilation MD5: 35544d6aa6739b24d20321f35048f836
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-20 04:24:49
Source code size: 355 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 268 / 298
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1013844 & http://1013844.tinybrain.de