You're thinking on the right lines: you either want to do this with XSLT 2.0, or failing that, with the EXSLT library of extensions for XSLT 1.0.
You say it didn't work. Without more information, no one can tell you why it didn't work. What did you do, and how did it fail?
I guess that by -P4 you mean a timezone four hours before GMT (I should know what AST is but I don't...). The correct representation of this duration is "-PT4H".
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference