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

Function formatTime

plugins/list.js:19–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17import path from 'path';
18import fs from 'fs';
19function formatTime() {
20 const now = new Date();
21 const options = {
22 hour: '2-digit',
23 minute: '2-digit',
24 hour12: false,
25 timeZone: config.timeZone || 'UTC'
26 };
27 return now.toLocaleTimeString('en-US', options);
28}
29const menuStyles = [
30 {
31 render({ _title, info, categories, prefix }) {

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected