seb24
asked on
Time problem in CR8.5
How to use time value bigger than 24 hours.
I want to add 30 hours with 50 hours = 80 hours(not 3 days and 8 hours);
Thanks,SD.
I want to add 30 hours with 50 hours = 80 hours(not 3 days and 8 hours);
Thanks,SD.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You will need to do something like
Time (heures1 mod 24,minutes1,0)
mlmcc
Time (heures1 mod 24,minutes1,0)
mlmcc
If you want to work with time values which do not conform to the 24 hour clock, you cannot use the builtin date/time data types.
Agree time is restricted to 24 hours then you get days. Why not store the value as a number and simply work with it that way.
mlmcc
mlmcc
This question has been classified abandoned. I will make a recommendation to the moderators on its resolution in a week or two. I appreciate any comments that would help me to make a recommendation.
Unless it is clear to me that the question has been answered I will recommend delete. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
If the user does not know how to close the question, the options are here:
https://www.experts-exchange.com/help/closing.jsp
mnye
EE Cleanup Volunteer
Unless it is clear to me that the question has been answered I will recommend delete. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
If the user does not know how to close the question, the options are here:
https://www.experts-exchange.com/help/closing.jsp
mnye
EE Cleanup Volunteer
Split DrRyan & mlmcc
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ/No Refund, Split Points mlmcc/DrRyan
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
mnye
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ/No Refund, Split Points mlmcc/DrRyan
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
mnye
EE Cleanup Volunteer
OK
Ok
ASKER
//////////////////////////
numbervar heures1 :=Sum ({@heure_1}, {Vue_Ressources_Engin.Mois
numbervar minutes1 :=Sum ({@minute_1}, {Vue_Ressources_Engin.Mois
numbervar minutes_en_plus1:=0;
if minutes1 > 59 THEN minutes_en_plus1:= Int ( minutes1 / 60);
if minutes1 > 59 THEN minutes1 := minutes1 mod 60;
heures1:= heures1 + minutes_en_plus1;
Time (heures1,minutes1,0) ;
//////////////////////////
How to do with "heures1" > 24 ?