MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / formatTime

Function formatTime

plugins/smartmenu.js:38–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 return getRandomEmoji(emojis);
37}
38function formatTime() {
39 const now = new Date();
40 const options = {
41 hour: '2-digit',
42 minute: '2-digit',
43 hour12: false,
44 timeZone: config.timeZone || 'UTC'
45 };
46 return now.toLocaleTimeString('en-US', options);
47}
48export default {
49 command: 'smenu',
50 aliases: ['shelp', 'smart', 'help2'],

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected