import java.text.*; static int localHours(long time) { SimpleDateFormat sdf = new SimpleDateFormat("HH"); sdf.setTimeZone(localTimeZone()); ret parseInt(sdf.format(time)); } static int localHours() { ret localHours(now()); }
Began life as a copy of #1026563
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026564 |
| Snippet name: | localHours |
| Eternal ID of this version: | #1026564/1 |
| Text MD5: | bc068e1b0239e0060e60a4cbf6b9c7c4 |
| 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:40 |
| Source code size: | 244 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 472 / 498 |
| Referenced in: | [show references] |