XQuery offers various date/time functions like current-dateTime(), however I can\'t seem to find one which gives me the time in mi
XQuery
date/time
current-dateTime()
(current-dateTime() - xs:dateTime("1970-01-01T00:00:00-00:00")) div xs:dayTimeDuration('PT0.001S')
returns the number of seconds as a duration, and then divides by 1 millisecond to get the number of milliseconds as a number.