Announcements
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
Yes. It's converting to a real value anyway. So, you wouldn't face any issues
but that fields include hours
and minutes consider as decimal is that ok ?
And you can utilize TimeConstants macro to avoid the magic constant:
#TimeConstants ... hrmAbsenceTrans.Hours * #SecondsPerHour;
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
Hi mohammed,
Just multiply by 3600 to get the seconds for an hour.
André Arnaud de Cal...
293,289
Super User 2025 Season 1
Martin Dráb
232,068
Most Valuable Professional
nmaenpaa
101,156
Moderator