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

3
LINES

< > BotCompany Repo | #1020718 // ymd_year - get year from yyyymmdd string

JavaX fragment (include)

static int ymd_year(S ymd) {
  ret parseInt(takeFirst(ymd, 4));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020718
Snippet name: ymd_year - get year from yyyymmdd string
Eternal ID of this version: #1020718/1
Text MD5: 5b73f5f09ef93ca791c7de8e2e899093
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-31 23:39:42
Source code size: 67 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 290 / 320
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020719 - ymd_month - get month from yyyymmdd string