Skip to main content
Glama

MCP Time Server Node

by pshempel
debug-january-2025.js626 B
const { eachDayOfInterval, isWeekend, format } = require('date-fns'); console.log('=== January 2025 Days ===\n'); const start = new Date(2025, 0, 1); const end = new Date(2025, 0, 31); const days = eachDayOfInterval({ start, end }); let weekdays = 0; let weekends = 0; for (const day of days) { const isWeekendDay = isWeekend(day); console.log(`${format(day, 'yyyy-MM-dd EEEE')}: ${isWeekendDay ? 'WEEKEND' : 'weekday'}`); if (isWeekendDay) { weekends++; } else { weekdays++; } } console.log(`\nTotal days: ${days.length}`); console.log(`Weekdays: ${weekdays}`); console.log(`Weekends: ${weekends}`);

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pshempel/mcp-time-server-node'

If you have feedback or need assistance with the MCP directory API, please join our Discord server