🖥
🖥
🖥
🖥
AugeLab Studio Manual
English
Ask or search…
K
Comment on page

Date-Time

This block gives the local device's date and time. You can process this data to your blocks.

Date-Time Node Documentation

The Date-Time node in AugeLab Studio allows you to retrieve the current date and time as a string.

Node Overview

The Date-Time node provides the current date and time information in the format "YYYY-MM-DD HH:MM:SS". It retrieves the current date and time from the system clock and outputs it as a string.

Node Interaction

  1. 1.
    Drag and drop the Date-Time node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Run the pipeline or execute the node to retrieve the current date and time.
  3. 3.
    The node will output the current date and time as a string.
  4. 4.
    Retrieve the output string from the output socket for further use in the pipeline.

Implementation Details

The Date-Time node retrieves the current date and time using the datetime module in Python. It calls the datetime.now() function to get the current date and time as a datetime object. Then, it formats the datetime object to the desired string format "YYYY-MM-DD HH:MM:SS" using the strftime() method.
During its implementation, the node performs the following steps:
  1. 1.
    Get Current Date and Time: The node calls the datetime.now() function to retrieve the current date and time as a datetime object.
  2. 2.
    Format Date and Time: The node formats the datetime object to the desired string format "YYYY-MM-DD HH:MM:SS" using the strftime() method.
  3. 3.
    Output: The formatted date and time string is provided as output through the output socket.

Usage

  1. 1.
    Drag and drop the Date-Time node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Run the pipeline or execute the node to retrieve the current date and time.
  3. 3.
    Retrieve the output string from the output socket for further use in the pipeline.
  4. 4.
    Use the date and time string in downstream nodes or export it for further processing.

Notes

  • The Date-Time node allows you to retrieve the current date and time as a string.
  • It provides the date and time information in the format "YYYY-MM-DD HH:MM:SS".
  • The node retrieves the current date and time from the system clock.
  • The output is a string representing the current date and time.
  • The Date-Time node simplifies the process of retrieving the current date and time, making it easier to include this information in your pipeline.
  • You can use the current date and time for various purposes, such as timestamping, logging, data organization, and more.