Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Tue, 10 Jun 2008 04:11:48 -0700 (PDT),    group: microsoft.public.xsl        back       


How to get the current time in milliseconds   
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
date: Tue, 10 Jun 2008 04:11:48 -0700 (PDT)   author:   unknown

Re: How to get the current time in milliseconds   
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/
date: Tue, 10 Jun 2008 14:00:11 +0200   author:   Martin Honnen

Re: How to get the current time in milliseconds   
thanks Martin
date: Tue, 10 Jun 2008 06:15:39 -0700 (PDT)   author:   unknown

Re: How to get the current time in milliseconds   
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
date: Wed, 11 Jun 2008 08:28:00 +0100   author:   Joe Fawcett am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us