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

7
LINES

< > BotCompany Repo | #1017646 // localYear

JavaX fragment (include)

static int localYear() {
  ret localYear(now());
}

static int localYear(long time) {
  ret parseInt(simpleDateFormat_local("yyyy").format(time));
}

Author comment

Began life as a copy of #1017441

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017646
Snippet name: localYear
Eternal ID of this version: #1017646/4
Text MD5: 1ccfd01a34c3cbe5bfd5de04cea99a1f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-31 01:34:46
Source code size: 154 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 376 / 434
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)