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)

static int month() {
  ret localMonth();
}

static int month(Timestamp now) {
  ret localMonth(toLong(now));
}

static int month(long now) {
  ret localMonth(now);
}

static int month(long now, TimeZone tz) {
  ret parseInt(simpleDateFormat("M", tz).format(now));
}

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: 689 / 910
Version history: 5 change(s)
Referenced in: #1003425 - year - year of timestamp (4 digits)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)