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

11
LINES

< > BotCompany Repo | #1010035 // formatGermanDateAndTime

JavaX fragment (include)

import java.text.*;

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

static S formatGermanDateAndTime(long time) {
  SimpleDateFormat sdf = new SimpleDateFormat("dd. MMMM yyyy HH:mm:ss", germanLocale());
  sdf.setTimeZone(germanTimeZone());
  ret sdf.format(time);
}

Author comment

Began life as a copy of #1008488

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: #1010035
Snippet name: formatGermanDateAndTime
Eternal ID of this version: #1010035/5
Text MD5: fdeda198b6da26e9cfb880cc5725f926
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-16 19:47:33
Source code size: 306 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 548
Version history: 4 change(s)
Referenced in: [show references]