get_Timestamp Method

WRAPPER_API const BmgChar* get_Timestamp() const

 

Description

Gets the time the change was made.

Format: YYYY-MM-DD HH:MM:SS

HH is in a 24 hour format
 

Example

void TestForm::AddChangesToAuditList(std::vector<const GEOCALCPBW_NAMESPACE::Change*> changes, bool isCustom)

{

int row = 0;

std::wstring string = "";

BmgChar * temp;

foreach(const GEOCALCPBW_NAMESPACE::Change* change, changes)

{

string = change->get_Timestamp();

m_table[row][0] = string;

 

if(isCustom)

{

m_table[row][1]->L"Custom";

}

else

{

m_table[row][1]->L"Base";

}

 

string = m_changeTypes[change->get_ChangeType()];

m_table[row][2] = string;

 

string = m_objectTypes.find(change->get_ObjectType())->second;

m_table[row][3] = string;

 

string = change->get_ObjectName();

m_table[row][4] = string;

 

string = change->get_ObjectID();

m_table[row][5] = string;

 

string = change->get_Comment();

m_table[row][6] = string;

 

if(change->IsCommitted())

{

m_table[row][7]->L"Committed";

}

else

{

m_table[row][7]->L"Uncommitted";

}

 

foreach (const GEOCALCPBW_NAMESPACE::ChangeDetail* detail, change->get_ChangeDetails())

{

string += FormatChangeDetail(detail);

}

m_table[row][8] = string;

}

}