S

Simple Agent Api Tool

A date and time tool component for Langflow, providing functions to get the current date and time and the week number with timezone support.
2 points
10

What are DateTime Tools?

This is a custom component for Langflow, specifically designed to handle date and time related operations, especially providing timezone support. It can help you easily get the current time with timezone or calculate the current week number.

How to use DateTime Tools?

Simply add the custom component in Langflow and then call the two main methods provided to get time information.

Applicable scenarios

Suitable for application scenarios that need to handle multi - timezone times, such as internationalized systems, cross - timezone collaboration tools, time - sensitive tasks, etc.

Main features

Get the current date and timeReturn the current time with timezone offset in ISO format (e.g., 2024 - 03 - 20T10:30:00 - 04:00)
Get the current week numberReturn the week number of the current date in the year (1 - 53)
Timezone supportSupport all timezone identifiers in the IANA timezone database

Advantages and limitations

Advantages
Simple and easy - to - use API design
Comprehensive timezone support
Lightweight with no additional dependencies (except pytz)
Seamless integration with Langflow
Limitations
Relatively basic functions, does not support complex date calculations
Requires manual installation of the pytz package
Simple error handling

How to use

Install the component
Copy the component code into the custom component editor of Langflow
Call the date and time function
Create an instance of DateTimeTools and call the get_current_datetime method
Call the week number function
Create an instance of DateTimeTools and call the get_week_number method

Usage examples

Cross - timezone meeting arrangementGet the local times of all participants when arranging an international meeting
Weekly report systemAutomatically generate report file names based on the week number

Frequently Asked Questions

How do I know if my timezone identifier is correct?
Why does the week number return - 1?
Do I need to install dependencies separately?

Related resources

IANA Time Zone Database
A complete list of timezone identifiers
Langflow Official Documentation
Guide for custom component development
pytz Documentation
Official documentation of the timezone processing library
Installation
Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.
Featured MCP Services
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
153
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
840
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
102
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
575
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
761
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
291
4.5 points
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase