Convert time to Windows NT format

Used to convert a time vector into the time format used by Windows NT. This is the number of 100-ns


Updated 3 Apr 2007

View License

The Windows NT time format is the number of 100 nanosecond intervals that has passed since January 1, 1601. This m-file is used to convert a normal time vector into this Windows NT format.

The function take a time vector with the same format as the output of Matlab's 'clock' function and returns a value expressing the number of 100 nanosecond intervals that have passed

Cite As

Josiah Renfree (2023). Convert time to Windows NT format (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Dates and Time in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

A factor of 100 was missing in the calculations, which resulted in the wrong time output. It has now been fixed and should be in working order