[AFS3-std] Re: A call for consensus on draft-deason-afs3-type-time-02

Jeffrey Altman jaltman@secure-endpoints.com
Mon, 01 Aug 2011 17:20:06 -0400


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig2647EB98B812449AC7E31696
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 8/1/2011 5:16 PM, Russ Allbery wrote:
> Jeffrey Altman <jaltman@secure-endpoints.com> writes:
>=20
>> If you can provide me a list of boundary times to check I can construc=
t
>> a test application that uses SYSTEMTIME to FILETIME conversions to tes=
t
>> the results of various time arithmetic operations.
>=20
>> typedef struct _SYSTEMTIME {
>>   WORD wYear;
>>   WORD wMonth;
>>   WORD wDayOfWeek;
>>   WORD wDay;
>>   WORD wHour;
>>   WORD wMinute;
>>   WORD wSecond;
>>   WORD wMilliseconds;
>> } SYSTEMTIME, *PSYSTEMTIME;
>=20
> Usually the interesting ones for Gregorian conversion of software writt=
en
> in the US are around the date of UK transition from Julian to Gregorian=
 in
> September of 1752:
>=20
>     September 1752
>  Su Mo Tu We Th Fr Sa
>         1  2 14 15 16
>  17 18 19 20 21 22 23
>  24 25 26 27 28 29 30
>=20
> (gcal is one of the few programs I know that attempts to cope with this=
=2E)
>=20
> My guess is that Windows is using a backwards-projection of UTC without=

> leap seconds and not attempting to worry about dates that theoretically=

> should be in Julian, so you'll get an offset of 10 or 11 days relative =
to
> the actual historical time when converting from a timestamp to calendar=

> time.
>=20

Provide times for a few known leap seconds and I can test those as well.



--------------enig2647EB98B812449AC7E31696
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iQEcBAEBAgAGBQJONxiIAAoJENxm1CNJffh49/AH/1MZZLyAQ9mIiabhFyZnFHuv
FFjEX67+JHztWs7JmIZvz6vEFtrPggpRl2CFXC9kf5dT3eNckXMI3kMEaQRz+YUN
cUats8XTrifl8BABP1u9n6xK8DWd3v+YBgrMumCn5ckVUzi+4VaQIrFqBqCfsig2
i2KN9IXVDtyHE5i0pcOxo6lmKYlgN1aMWh8gOSPXep/iQ13YvTWXBqrGxiGjzTLt
rfz9AaySkkuVKbVGtRw/WIJn+P1J3MpfPnWWpEVHOfgFJp+1Gv0n5ILUYCpxxlV/
0AOalh7nl+T/bQDR9oAfDL1kxwRCUCuO1mZbD9XLv+mdcbZ7/muv4PLLkhF85qw=
=o4oS
-----END PGP SIGNATURE-----

--------------enig2647EB98B812449AC7E31696--