Hi I need to get the current time in hours, minutes, seconds and milliseconds the function current-time() does not return the milliseconds thanks Mahmoud
khalil_mi@hotmail.com wrote: > I need to get the current time in hours, minutes, seconds and > milliseconds > > the function current-time() does not return the milliseconds Which XSLT processor are you using? Saxon 9 gives me 13:58:35.671+02:00 with the following stylesheet: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template name="main"> <xsl:value-of select="current-time()"/> </xsl:template> </xsl:stylesheet> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/
thanks Martin
wrote in message news:319c5eb6-1189-443c-89de-c7fc4ab83f1a@c65g2000hsa.googlegroups.com... > thanks Martin As an aside why do you need milliseconds accuracy? The point at which the current-time() function is called cannot be determined that accurately nor are many machines clocks. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name