mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-18 15:09:40 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
54 lines
799 B
C++
54 lines
799 B
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "DateTime.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
|
|
const std::string DateTime::s_pattern("%YYYY-%MM-%DDT%hh:%mm:%ssZ");
|
|
|
|
DateTime::DateTime()
|
|
{
|
|
}
|
|
|
|
|
|
DateTime::DateTime(const std::string& value)
|
|
: m_datetime(value, s_pattern)
|
|
{
|
|
}
|
|
|
|
|
|
DateTime::DateTime(const ::DateTime& dt)
|
|
: m_datetime(dt)
|
|
{
|
|
}
|
|
|
|
|
|
const std::string DateTime::ToString() const
|
|
{
|
|
return m_datetime.ToString(s_pattern);
|
|
}
|
|
|
|
|
|
const DateTime DateTime::Parse(const std::string& value)
|
|
{
|
|
return DateTime(value);
|
|
}
|
|
|
|
|
|
::DateTime& DateTime::datetime()
|
|
{
|
|
return m_datetime;
|
|
}
|
|
|
|
|
|
const ::DateTime& DateTime::datetime() const
|
|
{
|
|
return m_datetime;
|
|
}
|
|
|
|
} // namespace OOX
|