rvelthuis / DelphiBigNumbers

BigInteger and BigDecimal for Delphi
http://rvelthuis.de/programs/bigintegers.html
BSD 2-Clause "Simplified" License
119 stars 62 forks source link

Possibly wrong date format #6

Closed TommiPrami closed 6 years ago

TommiPrami commented 6 years ago

Velthuis.BigDecimals.pas

LongDateFormat: 'dddd, dd MMMMM yyyy HH:mm:ss';

maybe to

LongDateFormat: 'dddd, dd MMMMM yyyy HH:nn:ss';

Months in time part seems wrong. (If more than less standard Delphi format(s))

rvelthuis commented 6 years ago

According to MSDN, mm is correct for minutes, not nn. AFAIK, Delphi usually gets these directly from the Windows registry. I think you are confusing these with FormatDateTime formatting codes. These are similar, but not the same.

rvelthuis commented 6 years ago

FWIW, in Tokyo, TFormatSettings.Invariant.LongDateFormat is exactly 'dddd, dd MMMMM yyyy HH:mm:ss'.