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

9
LINES

< > BotCompany Repo | #1028542 // parseYMDHMS_slashesSpaceColons - "y/m/d h:m:s"

JavaX fragment (include)

import java.text.SimpleDateFormat;

static long parseYMDHMS_slashesSpaceColons(S s) ctex {
  ret new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").parse(s).getTime();
}

static long parseYMDHMS_slashesSpaceColons(S s, TimeZone tz) ctex {
  ret simpleDateFormat("yyyy/MM/dd HH:mm:ss", tz).parse(s).getTime();
}

Author comment

Began life as a copy of #1022334

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: #1028542
Snippet name: parseYMDHMS_slashesSpaceColons - "y/m/d h:m:s"
Eternal ID of this version: #1028542/4
Text MD5: 6c7dee15a31e983328c4cc66759b2707
Author: stefan
Category: javax / calendar
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-02 18:02:43
Source code size: 311 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 257
Version history: 3 change(s)
Referenced in: [show references]