[jcifs] Preserve lastModified TIME

Caldarale, Charles R Chuck.Caldarale at UNISYS.com
Thu Aug 15 02:07:40 EST 2002


> From: Michael B. Allen [mailto:miallen at eskimo.com]
> Subject: Re: [jcifs] Preserve lastModified TIME
> 
> Actually, that's a UTIME field which according to the spec is 
> the number of seconds since Jan 1, 1970.

Would that it were that simple.

Although this specific field is UTIME (incorrectly documented in Leach, but
correct in SNIA), don't forget the other two flavors that appear in the
protocol. Some functions use SMB_DATE/SMB_TIME structure, which is local
time, based on 1980 (the structure layout is documented incorrectly in both
the Leach and SNIA specs). Others use a 64-bit timestamp (aka TIME), which
is UTC based on 1601 (Gregorian). Finally, there's the 32-bit UTIME, based
on 1970, but also apparently local time, not UTC.

Ain't this grand?

 - Chuck



More information about the jcifs mailing list