Skip to main content
Solved

DateTime Format - Round Seconds

  • December 18, 2024
  • 2 replies
  • 90 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? 

 

View original
Did this help you find an answer to your question?

2 replies

veschwab
Contributor
Forum|alt.badge.img+11
  • 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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings