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

10
LINES

< > BotCompany Repo | #1015108 - localDateWithSeconds

JavaX fragment (include)

import java.text.*;

static S localDateWithSeconds(long time) {
  SimpleDateFormat format = simpleDateFormat_local("yyyy/MM/dd HH:mm:ss");
  ret format.format(time);
}

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

Author comment

Began life as a copy of #1013844

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1015108
Snippet name: localDateWithSeconds
Eternal ID of this version: #1015108/1
Text MD5: d13874e315dcca6781f26e1d57ff2513
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-08 13:46:50
Source code size: 248 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 188 / 189
Referenced in: [show references]

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