Sign Up

Date

Twidget offers a variety of commands to manipulate date objects. Below are the available commands along with their respective descriptions, inputs, and outputs.

Current Date

Description: Returns the current date and time.

Output:

  • Type: DATE

Add Time

Description: Returns the date plus a specified amount of time.

Inputs:

  • date The date to which time will be added.

  • time The amount of time to add.

  • time_period The unit of the time to add (e.g., hours, days).

Output:

  • Type: DATE

Minus Time

Description: Returns the date after subtracting a specified amount of time.

Inputs:

  • date The date from which time will be subtracted.

  • time The amount of time to subtract.

  • time_period The unit of the time to subtract (e.g., hours, days).

Output:

  • Type: DATE

Related Topics

Loops

In Twidget, loops allow you to execute commands multiple times, either based on a condition or through a set number of iterations. Loops can also be nested, meaning you can run loops within other loops, creating complex logic for your tasks. List Loop. The `List Loop` command enables you to loop thr...

Managing Files

Twidget offers a set of commands to manipulate files in your file store. Below are the descriptions and usage of each command to help you understand how to utilize them effectively. Get File. Retrieve a file via file path. Inputs: - `path`: The file path to retrieve the file from. Outputs: - `filena...

Math

Twidget offers a variety of commands to manipulate numbers. Below are the math commands available, along with their descriptions, inputs, and outputs. Sum. Description: Adds together a list of numbers and returns the sum. - Inputs: - `numbers`: A list of numbers to be added together. - Output: A sin...

Conversion

Overview. Twidget's conversion commands allow you to easily convert different data types to the required format. Below is a list of the available conversion commands and examples of how to use them. The `Convert to Text` command converts the provided value to a text (string) format. Examples: - `123...

Return

The `return` command in Twidget is a special command used to halt the current command workflow and immediately return a specified result. This command overrides any subsequent processes and outputs the return result regardless of the rest of the workflow logic. This command is particularly useful fo...