|
// *********************************************************
// システム日付を文字列で取得(9999/99/99)
// 戻り値 : 無し
// *********************************************************
void LboxInfo::Date( LboxString *LString )
{
if ( LString->nLboxString < 32 ) {
LString->Resize( 32 );
}
LboxInfo::Date( LString->szLboxString );
}
void LboxInfo::Date( LPTSTR lpBuffer )
{
SYSTEMTIME st;
GetLocalTime(
&st // システム日時
);
wsprintf(
lpBuffer,
"%04d/%02d/%02d",
st.wYear,
st.wMonth,
st.wDay
);
}
| |