Cover image
Try Now
2025-03-21

Prueba el servidor 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.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

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

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

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

    Reviews

    5 (1)
    Avatar
    user_ihHLNTZh
    2025-04-15

    I've been using the Office-Word-MCP-Server by GongRzhe and it has significantly improved my productivity. The ease of use and seamless integration with other MCP applications has been remarkable. It's a must-have tool for anyone serious about word processing and document management. Highly recommended!