#Timespan in hours

1 messages · Page 1 of 1 (latest)

neon valve
topaz gyro
#

It returns none

neon valve
#

no it doesnt

topaz gyro
#

what?

#

I mean it does

#

I have a variable set to 20 minutes and it just returns nothing

#

i need it to convert that into hours

neon valve
#
> !send hours of (difference between now and 10 hours from now)
[08:11:20 INFO]: executing 'send hours of (difference between now and 10 hours from now)'
[08:11:20 INFO]: 10

topaz gyro
#

try making the timespan 10 minutes

#

it returns nothing

neon valve
#
> !send hours of (difference between now and 10 minutes from now)
[08:12:00 INFO]: executing 'send hours of (difference between now and 10 minutes from now)'
[08:12:00 INFO]: 0
#

works fine for me

topaz gyro
#

10 minutes isn't 0 hours tho

#

so it does not work fine

neon valve
#

yes it does, 10 minutes is less than 1 hour, what is less than 1... 0

topaz gyro
#

it should return 0.16

neon valve
#

no it shouldnt

topaz gyro
#

well thats what i need

neon valve
#

get the minutes, and divide it by 60 then

#
> !send minutes of (difference between now and 10 minutes from now) / 60
[08:14:12 INFO]: executing 'send minutes of (difference between now and 10 minutes from now) / 60'
[08:14:12 INFO]: 0.17