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

11
LINES

< > BotCompany Repo | #1022281 // localTime_24_minutesToZero (HH:MM)

JavaX fragment (include)

import java.text.*;

static S localTime_24_minutesToZero(long time) {
  SimpleDateFormat sdf = new SimpleDateFormat("HH");
  sdf.setTimeZone(localTimeZone());
  ret sdf.format(time) + ":00";
}

static S localTime_24_minutesToZero() {
  ret localTime_24_minutesToZero(now());
}

Author comment

Began life as a copy of #1012820

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022281
Snippet name: localTime_24_minutesToZero (HH:MM)
Eternal ID of this version: #1022281/1
Text MD5: 1cabd0c3e7779869bf2859c59f4c7e11
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-12 16:56:54
Source code size: 286 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 282 / 310
Referenced in: [show references]