Batch #831 by ragnarok-clanker: 1 byte-identical, 0 confirmed by peer review. - fn_18084 Timestamp::~Timestamp: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Utility/Timestamp.cpp
28 lines
622 B
C++
28 lines
622 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_TIMESTAMP_H
|
|
#define RAGNAROK_SOURCE_UTILITY_TIMESTAMP_H
|
|
|
|
#include <ctime>
|
|
#include <windows.h>
|
|
#include <sqltypes.h>
|
|
|
|
class Timestamp {
|
|
public:
|
|
~Timestamp();
|
|
TIMESTAMP_STRUCT ToSqlTimestamp();
|
|
int IsBefore(__time32_t other) const;
|
|
int IsBeforeNow() const;
|
|
int Day() const;
|
|
int Hour() const;
|
|
int Minute() const;
|
|
int Month() const;
|
|
int Second() const;
|
|
int Year() const;
|
|
__time32_t SetDate(short year, short month, short day, short hour);
|
|
|
|
/* 0000 */ __time32_t seconds;
|
|
};
|
|
|
|
static_assert(sizeof(Timestamp) == 4);
|
|
static_assert(sizeof(TIMESTAMP_STRUCT) == 16);
|
|
|
|
#endif
|