Skip to main content
Glama

mcp-google-sheets

dayjs-helper.ts541 B
import dayjs from 'dayjs' import duration, { DurationUnitType } from 'dayjs/plugin/duration' import timezone from 'dayjs/plugin/timezone' import utc from 'dayjs/plugin/utc' dayjs.extend(utc) dayjs.extend(timezone) dayjs.extend(duration) export function apDayjs( time: undefined | number | string = undefined, ): dayjs.Dayjs { if (time === undefined) { return dayjs() } return dayjs(time) } export function apDayjsDuration( value: number, unit: DurationUnitType, ) { return dayjs.duration(value, unit) }

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/activepieces/activepieces'

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