/[svn]/gigedit/trunk/src/gigedit/MacrosSetup.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/MacrosSetup.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3160 by schoenebeck, Mon May 8 21:31:45 2017 UTC revision 3161 by schoenebeck, Mon May 8 22:25:46 2017 UTC
# Line 229  static int daysAgo(const tm& t) { Line 229  static int daysAgo(const tm& t) {
229          pNow->tm_mon  == t.tm_mon &&          pNow->tm_mon  == t.tm_mon &&
230          pNow->tm_mday == t.tm_mday) return 0;          pNow->tm_mday == t.tm_mday) return 0;
231      time_t past = mktime((tm*)&t);      time_t past = mktime((tm*)&t);
232      return ceil(difftime(now, past));      return ceil(difftime(now, past) / 60.0 / 60.0 / 24.0);
233  }  }
234    
235  static Glib::ustring humanShortStr(const tm& t) {  static Glib::ustring humanShortStr(const tm& t) {

Legend:
Removed from v.3160  
changed lines
  Added in v.3161

  ViewVC Help
Powered by ViewVC