Comment on page
Date-Time
This block gives the local device's date and time. You can process this data to your blocks.

The
Date-Time
node in AugeLab Studio allows you to retrieve the current date and time as a string.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.- 1.Drag and drop the
Date-Time
node from the node library onto the canvas in AugeLab Studio. - 2.Run the pipeline or execute the node to retrieve the current date and time.
- 3.The node will output the current date and time as a string.
- 4.Retrieve the output string from the output socket for further use in the pipeline.
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.Get Current Date and Time: The node calls the
datetime.now()
function to retrieve the current date and time as adatetime
object. - 2.Format Date and Time: The node formats the
datetime
object to the desired string format "YYYY-MM-DD HH:MM:SS" using thestrftime()
method. - 3.Output: The formatted date and time string is provided as output through the output socket.
- 1.Drag and drop the
Date-Time
node from the node library onto the canvas in AugeLab Studio. - 2.Run the pipeline or execute the node to retrieve the current date and time.
- 3.Retrieve the output string from the output socket for further use in the pipeline.
- 4.Use the date and time string in downstream nodes or export it for further processing.
- 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.