GetDateFormat
Not supported in warp 4.
Functional Difference from WIN95
N/A
Functional Difference from SBCS Open32
New
Implementation
This function formats a date as a date string for a specified locale. The function formats either a specified date or the local system date. Date to be formatted is passed in the structure; SYSTEMTIME. When SYSTEMTIME is NULL, Open32 gets the current local system date by DosGetDateTime. And Open32 maps this SYSTEMTIME or DATETIME into the structure tm.
──────────────────────────────────────────────────────────────── WIN95 -> ULS in Open32 <- DosAPI SYSTEMTIME struct tm DATETIME wYear tm_year year-1900 wMonth -1 tm_mon month-1 wDayOfWeek tm_wday weekday wDay tm_mday day wHour tm_hour hours wMinute tm_min minutes wSecond tm_sec seconds wMilliseconds n/a ────────────────────────────────────────────────────────────────
The format picture string is from the specified parameter or the locale information. When the format picture is not specified, Open32 gets the format picture from the locale information. The short format pictures created for DATE_SHORTDATE. The long format picture is created for DATE_LONGDATE. In the short format, LOCALE_SSHORTDATE and LOCALE_SDATE are used In the long format, LOCALE_SLONGDATE is used. In either case, the information which user overridden is used when LOCALE_NOUSEROVERRIDE flag off. Open32 maps the format picture string, user specified or Open32 gets now, to the format for UniStrftime like as below. At this time, the long date format copies the string between the pair of the apostrophes. The short date format replaces the unknown character by the string specified by LOCALE_SDATE.
─────────────────────────────────────────── WIN95 -> For ULS in Open32 d %d *1 dd %d ddd %a dddd and 'd' more %A m %m *1 mm %m mm %b mmmm and 'm' more %B y %y *1 yy %y yyy and 'y' more &Y gg and 'g' more *2 ───────────────────────────────────────────
Note: