Cover image
Try Now
2025-03-21

Tester le serveur MCP simple

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

DateTime Tools for Langflow

A simple custom component for Langflow that provides datetime-related tools with timezone support.

Features

  • Get current date and time with timezone support
  • Get current week number with timezone support
  • Simple error handling for invalid timezones

Installation

  1. Copy the contents of langflow_component.py
  2. Open Langflow
  3. Click "+ Custom Component"
  4. Paste the code into the editor
  5. Click "Check & Save"

Usage

Get Current DateTime

datetime_tools = DateTimeTools()
current_time = datetime_tools.get_current_datetime("America/New_York")
# Returns: "2024-03-20T10:30:00-04:00"

Get Week Number

datetime_tools = DateTimeTools()
week_num = datetime_tools.get_week_number("America/New_York")
# Returns: 12

Timezone Support

The component supports all timezones available in the IANA Time Zone Database. Common timezone identifiers include:

  • UTC
  • America/New_York
  • America/Los_Angeles
  • Europe/London
  • Asia/Tokyo
  • Australia/Sydney

For a complete list of supported timezones, refer to the IANA Time Zone Database.

Error Handling

  • Invalid timezones will return an error message
  • Week number will return -1 for invalid timezones or errors

Dependencies

The component requires the following Python packages:

  • pytz
  • datetime (built-in)

Make sure these are installed in your Langflow environment.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

  • deemkeen
  • Contrôlez votre MBOT2 avec un combo d'alimentation: MQTT + MCP + LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocole de connecteur de message) 服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 , 支持员工信息查询和消息发送等功能。

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

    Reviews

    5 (1)
    Avatar
    user_6nEI7RKI
    2025-04-16

    The Simple Agent API Tool by natapone is an excellent resource for developers looking to streamline their API interactions. Its user-friendly interface and comprehensive documentation make it easy to integrate and utilize. I highly recommend this tool for anyone needing a straightforward and efficient solution for API management. Check it out on GitHub!