Hi,
Does anyone know how to convert a number into hours and minutes? The following code generates a number for example 1.42:
WhilePrintingRecords;
NumberVar Days := {@Weekends and holidays}; // The field that calculates your business days
TimeVar SetStart := TimeValue("00:00" // The start your work day
TimeVar SetEnd := TimeValue("23:59" // The end your work day
TimeVar StartTime := TimeValue({Incident.ReportedDate});// The data field that holds your Start Time
TimeVar EndTime := TimeValue({Incident.ResolvedDate}); // The data field that holds your End Time
Days * ((SetEnd - SetStart) / 3600)
- ((SetEnd - EndTime) / 3600)
- ((StartTime - SetStart) / 3600)
How can the result be presented in hours and minutes?
Regards
Ulrika
Does anyone know how to convert a number into hours and minutes? The following code generates a number for example 1.42:
WhilePrintingRecords;
NumberVar Days := {@Weekends and holidays}; // The field that calculates your business days
TimeVar SetStart := TimeValue("00:00" // The start your work day
TimeVar SetEnd := TimeValue("23:59" // The end your work day
TimeVar StartTime := TimeValue({Incident.ReportedDate});// The data field that holds your Start Time
TimeVar EndTime := TimeValue({Incident.ResolvedDate}); // The data field that holds your End Time
Days * ((SetEnd - SetStart) / 3600)
- ((SetEnd - EndTime) / 3600)
- ((StartTime - SetStart) / 3600)
How can the result be presented in hours and minutes?
Regards
Ulrika