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)

1  
import java.text.*;
2  
3  
static S localTime_24_minutesToZero(long time) {
4  
  SimpleDateFormat sdf = new SimpleDateFormat("HH");
5  
  sdf.setTimeZone(localTimeZone());
6  
  ret sdf.format(time) + ":00";
7  
}
8  
9  
static S localTime_24_minutesToZero() {
10  
  ret localTime_24_minutesToZero(now());
11  
}

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: 283 / 311
Referenced in: [show references]