Mercurial > octave-libgccjit
comparison src/load-save.cc @ 9947:31436dcf7d0f
call nstrftime, not my_strftime
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Dec 2009 02:20:30 -0500 |
parents | 55061c7c8d6e |
children | cd96d29c5efa |
comparison
equal
deleted
inserted
replaced
9946:55061c7c8d6e | 9947:31436dcf7d0f |
---|---|
1182 | 1182 |
1183 time (&now); | 1183 time (&now); |
1184 bdt = *gmtime (&now); | 1184 bdt = *gmtime (&now); |
1185 memset (headertext, ' ', 124); | 1185 memset (headertext, ' ', 124); |
1186 // ISO 8601 format date | 1186 // ISO 8601 format date |
1187 my_strftime (headertext, 124, "MATLAB 5.0 MAT-file, written by Octave " | 1187 nstrftime (headertext, 124, "MATLAB 5.0 MAT-file, written by Octave " |
1188 OCTAVE_VERSION ", %Y-%m-%d %T UTC", &bdt, 1, 0); | 1188 OCTAVE_VERSION ", %Y-%m-%d %T UTC", &bdt, 1, 0); |
1189 | 1189 |
1190 // The first pair of bytes give the version of the MAT file | 1190 // The first pair of bytes give the version of the MAT file |
1191 // format. The second pair of bytes form a magic number which | 1191 // format. The second pair of bytes form a magic number which |
1192 // signals a MAT file. MAT file data are always written in | 1192 // signals a MAT file. MAT file data are always written in |
1193 // native byte order. The order of the bytes in the second | 1193 // native byte order. The order of the bytes in the second |