The XML layer recieves time as preformated text. It is NOT a number when it reaches the XML layer, though I'm sure its a number on the way into the client.
As Jaxel pointed out, this isn't a typical scripting environment, its a markup environment with some scripting capabilities added. Data first passes through the client layer where its often converted to text strings with various hardcoded input masks. Then the XML layer gets passed the formated strings.
Since the string includes non-numerical characters, we can't just convert it back to a number. We also don't have any way to remove the non-numerical characters.
|