0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The "Detail Period" operation within the "Date & Time" resource of this node calculates detailed information about a specific time period starting from a given start date and lasting for a specified duration. This can be useful in scenarios where you need to analyze or manipulate time intervals, such as generating reports for a certain timeframe, scheduling events, or calculating deadlines.

For example, you might use this operation to:

  • Determine all dates and times within a week starting from a particular date.
  • Calculate the exact range of a billing cycle based on a start date and duration.
  • Extract detailed period data for calendar integrations or reminders.

Properties

Name Meaning
Code Variables A collection of code variables defined in an external code editor environment. Each variable has a name (or ID) and a corresponding value. These variables can be used dynamically within the code execution context.
Start Date The starting date of the period to analyze or detail. It is a required string input representing the initial point in time.
Duration The length of the period starting from the Start Date, expressed as a number. This defines how long the detailed period should last.

Output

The output of this operation is a JSON array containing the detailed information about the specified period. Each element in the array represents a unit or segment of the period calculated based on the start date and duration inputs.

The exact structure of each JSON object in the output depends on the underlying API response but generally includes timestamps, formatted dates, or other relevant temporal details describing the period.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication with the external service powering the node's functionality.
  • The node makes HTTP POST requests to an endpoint under the path dateandtime/detailperiod to retrieve the detailed period data.
  • The node may depend on additional code variables if provided, which are fetched dynamically from an external code editor environment via load options.

Troubleshooting

  • Invalid Start Date Format: If the start date is not in a recognized format, the API may return an error or unexpected results. Ensure the date string follows a standard format (e.g., ISO 8601).
  • Duration Not Provided or Invalid: The duration must be a positive number. Omitting it or providing invalid values may cause failures.
  • API Authentication Errors: Missing or incorrect API credentials will prevent successful requests. Verify that the API key credential is correctly configured.
  • Code Variable Issues: If code variables are used, ensure their names/IDs exist in the code editor environment and values are properly set; otherwise, the request payload may be incomplete or invalid.
  • Network or Service Unavailability: Connectivity issues or downtime of the external API service will result in errors. Check network status and service health.

Links and References

  • n8n Expressions Documentation — For using expressions in variable definitions.
  • Refer to the external API documentation associated with the "0CodeKit" service for detailed information on the dateandtime/detailperiod endpoint (not publicly linked here).

Discussion