Changes in lemon/graph_to_eps.h [313:64f8f7cc6168:492:b9b3473327e3] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_to_eps.h
r313 r492 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-200 85 * Copyright (C) 2003-2009 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 30 30 #include<ctime> 31 31 #else 32 #define WIN32_LEAN_AND_MEAN 33 #define NOMINMAX 34 #include<windows.h> 32 #include<lemon/bits/windows.h> 35 33 #endif 36 34 … … 680 678 681 679 { 680 os << "%%CreationDate: "; 682 681 #ifndef WIN32 683 682 timeval tv; … … 686 685 char cbuf[26]; 687 686 ctime_r(&tv.tv_sec,cbuf); 688 os << "%%CreationDate: " <<cbuf;687 os << cbuf; 689 688 #else 690 SYSTEMTIME time; 691 char buf1[11], buf2[9], buf3[5]; 692 693 GetSystemTime(&time); 694 if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &time, 695 "ddd MMM dd", buf1, 11) && 696 GetTimeFormat(LOCALE_USER_DEFAULT, 0, &time, 697 "HH':'mm':'ss", buf2, 9) && 698 GetDateFormat(LOCALE_USER_DEFAULT, 0, &time, 699 "yyyy", buf3, 5)) { 700 os << "%%CreationDate: " << buf1 << ' ' 701 << buf2 << ' ' << buf3 << std::endl; 702 } 689 os << bits::getWinFormattedDate(); 703 690 #endif 704 691 } 692 os << std::endl; 705 693 706 694 if (_autoArcWidthScale) {
Note: See TracChangeset
for help on using the changeset viewer.