File tree 1 file changed +8
-3
lines changed 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 10
10
#include < algorithm>
11
11
#include < iostream>
12
12
#include < fstream>
13
+ #include < chrono>
14
+ #include < ctime>
13
15
14
16
/*
15
17
* Where to get the type of encoding FM or MFM? Now solved with options in proto config
@@ -168,14 +170,17 @@ class ImdImageWriter : public ImageWriter
168
170
169
171
170
172
// Give the user a option to give a comment in the IMD file for archive purposes.
173
+ auto start = std::chrono::system_clock::now ();
174
+ std::time_t time = std::chrono::system_clock::to_time_t (start);
175
+
171
176
std::string comment = _config.imd ().comment ();
172
177
if (comment.size () == 0 )
173
178
{
174
179
comment = LABEL ;
175
180
comment.append (" date: " );
176
- comment.append (__DATE__ );
177
- comment.append (" time: " );
178
- comment.append (__TIME__);
181
+ comment.append (std::ctime (& time ) );
182
+ // comment.append(" time: ");
183
+ // comment.append(__TIME__);
179
184
} else
180
185
{
181
186
comment.insert (0 ," IMD " );
You can’t perform that action at this time.
0 commit comments