mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 22:01:45 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
32 lines
611 B
C++
32 lines
611 B
C++
#pragma once
|
|
#ifndef OOX_DATE_TIME_INCLUDE_H_
|
|
#define OOX_DATE_TIME_INCLUDE_H_
|
|
|
|
#include <string>
|
|
#include "Utility.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
class DateTime
|
|
{
|
|
public:
|
|
DateTime();
|
|
explicit DateTime(const std::string& value);
|
|
explicit DateTime(const ::DateTime& dt);
|
|
|
|
public:
|
|
const std::string ToString() const;
|
|
static const DateTime Parse(const std::string& value);
|
|
|
|
public:
|
|
::DateTime& datetime();
|
|
const ::DateTime& datetime() const;
|
|
|
|
private:
|
|
static const std::string s_pattern;
|
|
::DateTime m_datetime;
|
|
};
|
|
} // namespace OOX
|
|
|
|
#endif // OOX_DATE_TIME_INCLUDE_H_
|