Hi Folks,

 

I am using fn:current-dateTime() to create a unique timestamp for creating
archive filenames, e.g.,

 

let $dt := fn:current-dateTime() cast as xs:string
return replace(substring($dt, 1, 22), "[:\-T\.]", "")

 

To make it truly unique I need to include part of the fraction of a second,
but I noticed that fn:current-dateTime() does not always  return the same
number of digits for fractions of a second.  I have seen results with a
range anywhere from 2 to 6 digits.  Is there a minimum amount of digits that
will be supplied in the fractions digits? 

 

Thank you!

 

Tim Meagher

 

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to