Instant Local Time Retrieval
detail.loadingPreview
Effortlessly capture precise local datetime information for any timezone. This workflow provides immediate access to year, month, day, hour, minute, second, millisecond, and a human-readable formatted string.
About This Workflow
This n8n workflow offers a streamlined solution for obtaining accurate local datetime data. Triggered manually, it leverages the moment.js library to fetch the current time within a specified timezone, easily configurable via environment variables. The output is a structured JSON object containing individual time components (year, month, day, hour, minute, second, millisecond) along with a fully formatted datetime string. This node is invaluable for applications requiring time-sensitive operations, detailed logging, or integration with systems that depend on precise temporal data across different regions.
Key Features
- Real-time Datetime Capture: Get the exact current time with millisecond precision.
- Timezone Agnostic: Supports any timezone via environment variable configuration.
- Structured Output: Provides individual time components and a formatted string for easy parsing.
- Manual Trigger: Simple execution for on-demand datetime retrieval.
How To Use
- Add the Manual Trigger Node: Drag and drop the 'On clicking execute' node onto your workflow canvas.
- Add the Function Node: Add the 'Get Local Datetime' node.
- Configure Timezone: In the 'Get Local Datetime' node's parameters, ensure your desired timezone is set in the
GENERIC_TIMEZONEenvironment variable. This is crucial for accurate results. - Connect the Nodes: Draw a connection from the 'On clicking execute' node to the 'Get Local Datetime' node.
- Execute: Click the 'execute' button on the manual trigger node to retrieve the local datetime information.
Apps Used
Workflow JSON
{
"id": "d3d34fea-2ff5-498f-be10-79637cdfaefa",
"name": "Instant Local Time Retrieval",
"nodes": 29,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: d3d34fea-2ff5...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.