Rounding Date and Time Values
- 05 Oct 2023
- 1 Minute to read
- Print
- DarkLight
Rounding Date and Time Values
- Updated on 05 Oct 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.
Overview
Example Lab Details | |
Version | 6.9.0 |
Root Folder | Example Leb - Rounding DateTime |
Modules | None |
Dependencies | None |
This Example Lab project demonstrates how to use a Converter Flow to round a DateTime to the nearest quarter-hour.
Explanation
This Example Lab project demonstrates how to round a DateTime value to the nearest quarter-hour. This is accomplished with a Converter Flow that uses Truth Table to determine the nearest quarter-hour. From there, the difference between the provided DateTime and the nearest quarter hour is calculated. That difference is used to adjust the supplied DateTime, which is then parsed to remove the seconds. With this Flow being a Converter Flow, it can be used on inputs of the DateTime type. For more info on Converter Flows, please refer to the documentation page linked below.
Reference Articles
Project Download
The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production-quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.9.0 or later using our Importing/Exporting article.
Was this article helpful?