Mercurial > mercurial > hgweb_searcher03.cgi
diff src/db.cpp @ 7:7ac7d28699af
Display DB update day.
Ask print image with mask or not.
author | pyon@macmini |
---|---|
date | Thu, 17 Oct 2013 19:54:23 +0900 |
parents | 76db82822e73 |
children | 4967d1e2b30c |
line wrap: on
line diff
--- a/src/db.cpp Wed Sep 18 18:20:40 2013 +0900 +++ b/src/db.cpp Thu Oct 17 19:54:23 2013 +0900 @@ -1,5 +1,5 @@ // Filename : db.cpp -// Last Change: 18-Sep-2013. +// Last Change: 16-Oct-2013. // #include "db.h" @@ -250,6 +250,26 @@ } //********** HHS-DB & CCN-DB **********// +/* DBの更新日時を取得 */ +wxArrayString GetLastUpdate( void ) +{ + wxArrayString date; + wxString dbFile; + wxDateTime t; + + dbFile = wxGetCwd() + wxFILE_SEP_PATH + wxT("db") + wxFILE_SEP_PATH + wxT("ccn.db"); + wxFileName ccn( dbFile ); + t = ccn.GetModificationTime(); + date.Add( t.FormatISODate() ); + + dbFile = wxGetCwd() + wxFILE_SEP_PATH + wxT("db") + wxFILE_SEP_PATH + wxT("hhs.db"); + wxFileName hhs( dbFile ); + t = hhs.GetModificationTime(); + date.Add( t.FormatISODate() ); + + return date; +} + /* DB整合性チェック */ wxArrayString CheckDBs( void ) { @@ -320,3 +340,4 @@ return result; } +