lemon/bits/windows.cc
changeset 904 c279b19abc62
parent 493 3f0ddf255524
child 941 6660ac776acf
equal deleted inserted replaced
1:3bef95956be2 2:6c955a1e909b
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2009
     5  * Copyright (C) 2003-2010
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
    94       std::ostringstream os;
    94       std::ostringstream os;
    95 #ifdef WIN32
    95 #ifdef WIN32
    96       SYSTEMTIME time;
    96       SYSTEMTIME time;
    97       GetSystemTime(&time);
    97       GetSystemTime(&time);
    98       char buf1[11], buf2[9], buf3[5];
    98       char buf1[11], buf2[9], buf3[5];
    99 	  if (GetDateFormat(MY_LOCALE, 0, &time,
    99           if (GetDateFormat(MY_LOCALE, 0, &time,
   100                         ("ddd MMM dd"), buf1, 11) &&
   100                         ("ddd MMM dd"), buf1, 11) &&
   101           GetTimeFormat(MY_LOCALE, 0, &time,
   101           GetTimeFormat(MY_LOCALE, 0, &time,
   102                         ("HH':'mm':'ss"), buf2, 9) &&
   102                         ("HH':'mm':'ss"), buf2, 9) &&
   103           GetDateFormat(MY_LOCALE, 0, &time,
   103           GetDateFormat(MY_LOCALE, 0, &time,
   104                         ("yyyy"), buf3, 5)) {
   104                         ("yyyy"), buf3, 5)) {