Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

試用版 #10

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ void RimeWithWeaselHandler::Initialize()
return;
}

std::time_t chitma = time(nullptr);
struct tm tm1;
tm1.tm_hour = 23;
tm1.tm_min = 59;
tm1.tm_sec = 0;
tm1.tm_year = 2020-1900;
tm1.tm_mon = 6-1;
tm1.tm_mday = 30;
std::time_t kauki = std::mktime(&tm1);
if(chitma > kauki){
return;
}

LOG(INFO) << "Initializing la rime.";
RimeInitialize(NULL);
if (RimeStartMaintenance(/*full_check = */False))
Expand Down