Ask AI
Skip to main content

Add Time

Function: Add Time

This function allows you to easily adjust any date and time by adding a specific duration to it. Whether you need to calculate a future deadline, schedule an event, or simply move a date forward, this action provides a straightforward way to do so without any complex calculations.

Input

  • Date: The starting date and time you want to adjust. This is the original date to which you will add time.
  • Amount: The quantity of time you wish to add. For example, if you want to add 5 days, you would enter '5' here. By default, this is set to '1'.
  • Unit: The type of time unit you want to add. You can choose from a list of options like seconds, minutes, hours, days, weeks, months, or years. By default, this is set to 'Minutes'.
    • Options: Nano seconds, Milli seconds, Seconds, Minutes, Hours, Days, Weeks, Years.

Output

  • Result: The new date and time after the specified amount of time has been added to your starting date. This adjusted date will be stored in a variable that you can use in other parts of your application. By default, this variable will be named 'Result'.

Execution Flow

Real-Life Examples

Here are a few examples of how you can use the "Add Time" function in your applications:

Example 1: Setting a Project Deadline

Imagine you have a project that starts today and needs to be completed in 3 weeks. You want to automatically calculate the deadline date.

  • Inputs:
    • Date: Today's Date (e.g., 2023-10-26 10:00 AM)
    • Amount: 3
    • Unit: Weeks
  • Result: The application calculates the new date as 2023-11-16 10:00 AM and stores it in a variable named 'Result', which you can then display as the project deadline.

Example 2: Scheduling a Follow-up Email

You've just sent a welcome email to a new user and want to schedule a follow-up email to be sent exactly 2 days later.

  • Inputs:
    • Date: Date and Time Welcome Email Sent (e.g., 2023-10-26 03:30 PM)
    • Amount: 2
    • Unit: Days
  • Result: The application calculates the follow-up date as 2023-10-28 03:30 PM and stores it in a variable named 'Result', which can then trigger the follow-up email.

Example 3: Extending a Subscription

A customer requests to extend their subscription by 6 months from its current expiration date.

  • Inputs:
    • Date: Current Subscription Expiration Date (e.g., 2024-01-15 11:59 PM)
    • Amount: 6
    • Unit: Months
  • Result: The application calculates the new expiration date as 2024-07-15 11:59 PM and stores it in a variable named 'Result', updating the customer's subscription record.