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

15
LINES

< > BotCompany Repo | #1003424 // month - month of timestamp (1-12)

JavaX fragment (include)

1  
static int month() {
2  
  ret localMonth();
3  
}
4  
5  
static int month(Timestamp now) {
6  
  ret localMonth(toLong(now));
7  
}
8  
9  
static int month(long now) {
10  
  ret localMonth(now);
11  
}
12  
13  
static int month(long now, TimeZone tz) {
14  
  ret parseInt(simpleDateFormat("M", tz).format(now));
15  
}

Author comment

Began life as a copy of #1003423

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003424
Snippet name: month - month of timestamp (1-12)
Eternal ID of this version: #1003424/6
Text MD5: da8bd7d899e5d1a1705dd7cf008b6ab4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-07 21:30:51
Source code size: 279 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 622 / 836
Version history: 5 change(s)
Referenced in: [show references]