2
Can anyone help me with the following question?
I have returns of two variables. Examples:
- 1st - of the type
decimal
(vdecTotalHoras
) and the - 2nd - also of the type
decimal
(vdecMediaAnalise
), both return date and time values indecimal
. How do I convert toDateTime
?
The code below demonstrates how I am receiving the values:
(
decTotalHoras = ((paintHoras * 60) + paintMinutos) / 60;
decMediaAnalise = (decTotalHoras) / paintAnalises;
)
But I can’t convert the returns to Hour/Minute/Second.
I don’t understand your question. Say your problem more clearly, where do you want to go, and if possible what you tried to do. Do you have the amount of seconds? For me these variables that used in the example are very loose, without context. Enjoy explain what is return to you, since variable does not return anything, they only have values.
– Maniero
You are working only hours and minutes. It doesn’t make much sense to use a
DateTime
. I think your case would be more like aTimeSpan
.– Leonel Sanches da Silva