types and parsers for epoch time and absolute DateTime

Another possibility, try this:

    (n*Math.pow(10,o)).toLong

The way you had it, the parens were implicitly:

    n*(Math.pow(10,o).toLong)

Which will of course be zero.