Implementation code for GetDateFormat Win32 function
        Posted  
        
            by morpheous
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by morpheous
        
        
        
        Published on 2010-05-28T01:03:43Z
        Indexed on 
            2010/05/28
            1:11 UTC
        
        
        Read the original article
        Hit count: 295
        
I am porting some legacy code from windows to Linux (Ubuntu Karmic to be precise).
I have come across a Win32 function GetDateFormat().
The statements I need to port over are called like this:
GetDateFormat(LOCALE_USER_DEFAULT, 0, &datetime, "MMMM", 'January', 31);
OR
GetDateFormat(LOCALE_USER_DEFAULT, 0, &datetime, "MMMM", 'May', 30);
Where datetime is a SYSTEMTIME struct.
Does anyone know where I can get the code for the function - or failing that, tips on how to "roll my own" equivalent function?
© Stack Overflow or respective owner