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

4
LINES

< > BotCompany Repo | #1032429 // formatDateForLastModifiedHeader

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

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

sS formatDateForLastModifiedHeader(long time default now()) {
  var sdf = simpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", TimeZone.getTimeZone("GMT"));
  ret sdf.format(time);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032429
Snippet name: formatDateForLastModifiedHeader
Eternal ID of this version: #1032429/3
Text MD5: 37573240df57cc3d4e869a5e5bf88c2b
Transpilation MD5: 7ad61065a56011acd9b43a717ecc1ce8
Author: stefan
Category: javax / http
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-04 16:14:46
Source code size: 184 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 150 / 223
Version history: 2 change(s)
Referenced in: [show references]