Add Time
Function: Add Time
This action allows you to easily adjust any date and time by adding a specific duration. Whether you need to extend a deadline, schedule a future event, or calculate a new timestamp, this function provides a straightforward way to modify dates without complex calculations.
Input
- Date: The original date and time you want to modify. This is the starting point for your adjustment.
- Amount: The numerical value representing how much time you want to add. This must be a positive number.
- Unit: The unit of time for your adjustment. You can choose from:
NANOS(nanoseconds)MILLIS(milliseconds)SECONDSMINUTESHOURSDAYSWEEKSMONTHSYEARS
Output
- Result: The new date and time after the specified amount of time has been added. This will be stored in a variable that you name (by default, it's named "result").
Execution Flow
Real-Life Examples
Example 1: Extending a Project Deadline
Imagine you have a project deadline and need to extend it by two weeks.
- Inputs:
- Date:
2023-10-26 17:00:00(Current Project Deadline) - Amount:
2 - Unit:
WEEKS - Result Variable Name:
NewDeadline
- Date:
- Result: The
NewDeadlinevariable will contain2023-11-09 17:00:00, reflecting the extended deadline.
Example 2: Scheduling a Follow-up Meeting
You just finished a meeting and want to schedule a follow-up exactly 3 days from now.
- Inputs:
- Date:
2023-09-15 10:30:00(Current Date and Time) - Amount:
3 - Unit:
DAYS - Result Variable Name:
FollowUpMeetingTime
- Date:
- Result: The
FollowUpMeetingTimevariable will contain2023-09-18 10:30:00, indicating the time for the follow-up meeting.
Example 3: Calculating a Subscription Renewal Date
A customer's annual subscription is due to renew in 6 months. You want to calculate the exact renewal date.
- Inputs:
- Date:
2024-01-01 00:00:00(Subscription Start Date) - Amount:
6 - Unit:
MONTHS - Result Variable Name:
RenewalDate
- Date:
- Result: The
RenewalDatevariable will contain2024-07-01 00:00:00, showing when the subscription is due for renewal.