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

5
LINES

< > BotCompany Repo | #1026562 // localTimeForSpeechOutput

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (234L/2K).

sS localTimeForSpeechOutput() {
  int minutes = localMinutes();
  int hours = ((localHours()+11) % 12)+1;
  ret numberToEnglish(hours) + " " + (minutes == 0 ? " o'clock" : numberToEnglish(minutes));
}

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: #1026562
Snippet name: localTimeForSpeechOutput
Eternal ID of this version: #1026562/3
Text MD5: c67351514054cb446212c92f4510fba4
Transpilation MD5: d6a3c10f72fb2b462e06648606efd427
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-30 13:19:02
Source code size: 204 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 313 / 416
Version history: 2 change(s)
Referenced in: [show references]