Mercurial > hg > orthanc
comparison Core/Compression/ZipWriter.cpp @ 3129:c262b10bfae1
fix build of civetweb for Visual Studio 2008 and LSB
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Jan 2019 12:17:29 +0100 |
parents | 4e43e67f8ecf |
children | 6fd38327e777 |
comparison
equal
deleted
inserted
replaced
3126:b1787ba94eef | 3129:c262b10bfae1 |
---|---|
57 | 57 |
58 boost::gregorian::date today = now.date(); | 58 boost::gregorian::date today = now.date(); |
59 ptime midnight(today); | 59 ptime midnight(today); |
60 | 60 |
61 time_duration sinceMidnight = now - midnight; | 61 time_duration sinceMidnight = now - midnight; |
62 zfi.tmz_date.tm_sec = sinceMidnight.seconds(); // seconds after the minute - [0,59] | 62 zfi.tmz_date.tm_sec = static_cast<unsigned int>(sinceMidnight.seconds()); // seconds after the minute - [0,59] |
63 zfi.tmz_date.tm_min = sinceMidnight.minutes(); // minutes after the hour - [0,59] | 63 zfi.tmz_date.tm_min = static_cast<unsigned int>(sinceMidnight.minutes()); // minutes after the hour - [0,59] |
64 zfi.tmz_date.tm_hour = sinceMidnight.hours(); // hours since midnight - [0,23] | 64 zfi.tmz_date.tm_hour = static_cast<unsigned int>(sinceMidnight.hours()); // hours since midnight - [0,23] |
65 | 65 |
66 // http://www.boost.org/doc/libs/1_35_0/doc/html/boost/gregorian/greg_day.html | 66 // http://www.boost.org/doc/libs/1_35_0/doc/html/boost/gregorian/greg_day.html |
67 zfi.tmz_date.tm_mday = today.day(); // day of the month - [1,31] | 67 zfi.tmz_date.tm_mday = today.day(); // day of the month - [1,31] |
68 | 68 |
69 // http://www.boost.org/doc/libs/1_35_0/doc/html/boost/gregorian/greg_month.html | 69 // http://www.boost.org/doc/libs/1_35_0/doc/html/boost/gregorian/greg_month.html |