Notifications
Announcements
No record found.
greeting everyone
how can i convert real to seconds
i'm get value from this table
HRMAbsenceTrans.hours
i need to convert that to seconds
Hi mohammed,
Just multiply by 3600 to get the seconds for an hour.
Hi Mohammed,
As mentioned you can multiply with 3600 to get the value in seconds
HRMAbsenceTrans hrmAbsenceTrans; select firstonly1 hrmAbsenceTrans; info(strFmt('%1',hrmAbsenceTrans.hours* 3600));
Regards,
M
And you can utilize TimeConstants macro to avoid the magic constant:
#TimeConstants ... hrmAbsenceTrans.Hours * #SecondsPerHour;
but that fields include hours
and minutes consider as decimal is that ok ?
Yes. It's converting to a real value anyway. So, you wouldn't face any issues
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 559 Most Valuable Professional
André Arnaud de Cal... 464 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader