Converting NT-timestamps to Linux inaccurate

Urban Widmark urban at teststation.com
Thu Feb 8 00:16:45 GMT 2001


On Wed, 7 Feb 2001, Dr. Markus Ammer wrote:

> Then I have found "nt_time_to_unix" in source/lib/time.c
> Obviously it uses double-fp-arithmetic to deal with the 64 bit NT-timestamp. 

Try looking at the NTFS time conversion code in the linux kernel sources 
(fs/ntfs/util.c). I have no idea if that also has precision problems.

It avoids 64 bit math and floating point.

/Urban





More information about the samba mailing list