Bit inversion on a number

I am learning the scripting and I have tried doing this:

:put (~59360)

which gives an error: “Script Error: cannot invert time interval”.

How can I bit invert a number?

Thanks

I thought :tobool of the number would do the job, but apparently :tobool of a num produces a nil, which looks like a bug or a limitation.