Libraryless. Click here for Pure Java version (75L/1K).
1 | import java.text.*; |
2 | |
3 | sS localDateWithMilliseconds(Date time) {
|
4 | ret localDateWithMilliseconds(time.getTime()); |
5 | } |
6 | |
7 | sS localDateWithMilliseconds(long time) {
|
8 | SimpleDateFormat format = simpleDateFormat_local("yyyy/MM/dd HH:mm:ss''SSSS");
|
9 | ret format.format(time); |
10 | } |
11 | |
12 | sS localDateWithMilliseconds() {
|
13 | ret localDateWithMilliseconds(now()); |
14 | } |
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: | 872 / 1104 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |