Skip to main content
Glama

DataWorks MCP Server

by aliyun
toTimestamps.ts607 B
import dayjs from 'dayjs'; import { OpenApiClientInstance } from "../../openApiClient/index.js"; export default async function toTimestamps( agent: OpenApiClientInstance, dateTimeDisplay?: string[], ) { try { const result: number[] = []; if (dateTimeDisplay) { dateTimeDisplay?.forEach?.((str) => { try { const timestamp = dayjs(str).valueOf(); result.push(timestamp); } catch (e) { console.error(e); } }); } return result; } catch (error: any) { throw new Error(`To timestamps failed: ${error.message}`); } }

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/aliyun/alibabacloud-dataworks-mcp-server'

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