Skip to main content
Solved

DateTime Format - Round Seconds

  • December 18, 2024
  • 2 replies
  • 153 views

sunnywaygis
Contributor
Forum|alt.badge.img+2

Hi, I have a time format like below (hh:mm:ss) and I want to round seconds as below. What is the best option to achieve this? 

00:00:22.464 > 00:00:22
00:01:22.825 >   00:01:23

Thanks in advance for your feedback. 

Best answer by veschwab

Have you tried the DateTimeRounder with unit to round: seconds and the round-off option nearest? 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

veschwab
Contributor
Forum|alt.badge.img+22
  • Contributor
  • Best Answer
  • December 19, 2024

Have you tried the DateTimeRounder with unit to round: seconds and the round-off option nearest? 

 


sunnywaygis
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • December 19, 2024

This works like a charm. Thank you