Commit af807287 authored by Chris Morgan's avatar Chris Morgan Committed by Alexandre Julliard

GetDateFormat() and GetTimeFormat() should check the validity of the

time/date structure it is processing. Add comments to describe flags behavior. Add support for TIME_FORCE24HOURFORMAT, TIME_NOMINUTESORSECONDS, TIME_NOSECONDS and TIME_NOTIMEMARKER. Add check in GetDateFormatW() for invalid flag combinations. Added some missing DATE_* defines to winnls.h. Behavior verified against NT4.0.
parent 5f31b329
......@@ -196,6 +196,10 @@ extern "C" {
#define DATE_USE_ALT_CALENDAR 0x00000004 /* use alternate calendar */
/* alt. calendar support is broken anyway */
#define DATE_YEARMONTH 0x00000008 /* use year/month */
#define DATE_LTRREADING 0x00000010 /* left to right reading order */
#define DATE_RTLREADING 0x00000020 /* right to left reading order */
#define TIME_FORCE24HOURFORMAT 0x00000008 /* force 24 hour format*/
#define TIME_NOTIMEMARKER 0x00000004 /* show no AM/PM */
#define TIME_NOSECONDS 0x00000002 /* show no seconds */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment