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

15
LINES

< > BotCompany Repo | #1028052 // formatDateWithSeconds - extended synonym of localDateWithSeconds

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

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


static S formatDateWithSeconds(long time) {
  ret localDateWithSeconds(time);
}



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

static S formatDateWithSeconds(long time, TimeZone tz) {
  ret simpleDateFormat("yyyy/MM/dd HH:mm:ss", tz).format(time);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028052
Snippet name: formatDateWithSeconds - extended synonym of localDateWithSeconds
Eternal ID of this version: #1028052/5
Text MD5: 1fff0dd2fbb730db68a8fa4861efd799
Transpilation MD5: 907ca054f943eed7f6c7e3c8245a3ccc
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-28 17:12:35
Source code size: 289 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 224 / 331
Version history: 4 change(s)
Referenced in: [show references]