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

3
LINES

< > BotCompany Repo | #1028559 // ymdToTimestamp

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

Libraryless. Click here for Pure Java version (2832L/17K).

static long ymdToTimestamp(int year, int month, int day, TimeZone tz default defaultTimeZone()) ctex {
  ret simpleDateFormat("y/M/d", tz).parse(year + "/" + month + "/" + day).getTime();
}

Author comment

Began life as a copy of #1028556

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028559
Snippet name: ymdToTimestamp
Eternal ID of this version: #1028559/3
Text MD5: a8077373a4ef31b5a692320778cfed03
Transpilation MD5: 3a15f2b5d64dcfeaabfe33d06a630a91
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-26 17:27:28
Source code size: 191 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 235 / 324
Version history: 2 change(s)
Referenced in: [show references]