Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Preciso converter o campo abaixo para somente hora e minuto, por exemplo se tenho 10h59m preciso que fique 10:59,
caso seja 58m preciso que fique 0:58 !
No caso preciso fazer a média desses tempos, não sei se seria a melhor maneira
as below
temp:
Load
Timefield
,interval(alt(num(TextBetween('@'&Timefield,'@','h')),0)&':'&alt(num(trim(TextBetween('@'&Timefield,if(SubStringCount(Timefield,'h'),'h','@'),'m'))),0),'h:mm') as new_timefield
inline [
Timefield
1h
58m
10h 59m
3m
52m
9h 8m
];
as below
temp:
Load
Timefield
,interval(alt(num(TextBetween('@'&Timefield,'@','h')),0)&':'&alt(num(trim(TextBetween('@'&Timefield,if(SubStringCount(Timefield,'h'),'h','@'),'m'))),0),'h:mm') as new_timefield
inline [
Timefield
1h
58m
10h 59m
3m
52m
9h 8m
];
It worked! Thank you very much!
But help me with one more thing, I need the negative hours to be positive and 1 more hour to be added to them, can you help?