COleDateTime オブジェクトの時刻を DBTIMESTAMP データ構造体として取得するには、このメソッドを呼び出します。
bool GetAsDBTIMESTAMP(
DBTIMESTAMP& dbts
) const throw();
パラメーター
- dbts
DBTimeStamp 構造体への参照。
戻り値
正常終了した場合は 0 以外を返します。それ以外の場合は 0 を返します。
解説
変換後の時刻の値を参照先の dbts 構造体に格納します。 この関数によって初期化される DBTIMESTAMP データ構造体の fraction メンバーは 0 に設定されます。
使用例
COleDateTime t = COleDateTime::GetCurrentTime();
DBTIMESTAMP ts;
t.GetAsDBTIMESTAMP(ts); // retrieves the time in t into the ts structure
必要条件
**ヘッダー:**atlcomtime.h