Below is one way of doing this; hopefully it will save you some time if you ever have to do the same!

Code: Select all

```
#==================================
v-Text = ":"
v-Time = {Case Opened Time.Text}
#================================Split hours
v-H = SPLIT( v-Time , 1 , 2 )
#================================Split minutes
v-M = SPLIT( v-Time , 4 , 2 )
#================================Check if minutes >= 30
IF v-M >= "30" THEN
#==============================If so, minus 30
v-M = v-M - 30
#==============================Check minute length
vLen = LENGTH( V-m )
#==============================If minute length = '1', prefix with '0'
IF vLen = 1 THEN
PUT( v-M , {Minutes.Text} )
v-M = "0" + {Minutes.Text}
END
#==============================Add 1 to hours
v-H = v-H +1
#==============================Change 24 hours to 00
IF v-H = "24" THEN
v-H = "00"
END
#==============================Check hour length
vLen = LENGTH( v-H )
#==============================If hour length = '1', prefix with '0'
IF vLen = 1 THEN
PUT( v-H , {Hours.Text} )
v-H = "0" + {Hours.Text}
END
#==============================Else < 30
ELSE
v-M = v-M + 30
END
#====================
v-TimeNew = v-H + v-Text + v-M
result = v-TimeNew
```