typetools: XMLGregorianCalendar routines for TTime

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>