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

11
LINES

< > BotCompany Repo | #1026563 - localMinutes

JavaX fragment (include)

import java.text.*;

static int localMinutes(long time) {
  SimpleDateFormat sdf = new SimpleDateFormat("mm");
  sdf.setTimeZone(localTimeZone());
  ret parseInt(sdf.format(time));
}

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

Author comment

Began life as a copy of #1012820

download  show line numbers  debug dex   

Travelled to 3 computer(s): mqqgnosmbjvj, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026563
Snippet name: localMinutes
Eternal ID of this version: #1026563/1
Text MD5: 6b7c123fd57a2d13c40246ebd6c008c6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-13 23:34:15
Source code size: 250 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 7 / 14
Referenced in: [show references]

Formerly at http://tinybrain.de/1026563 & http://1026563.tinybrain.de