forked from mcneel/rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLBPTime.h
37 lines (26 loc) · 823 Bytes
/
LBPTime.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#ifndef LBPEXPORT
#define LBPEXPORT
#endif
#include "LBPString.h"
class LBPEXPORT CLBPTime : public CTime
{
public:
CLBPTime() { }
CLBPTime(time_t time) : CTime(time) { }
CLBPTime(int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, int nDST = -1)
: CTime(nYear, nMonth, nDay, nHour, nMin, nSec, nDST) { }
#if defined LBPLIB_WINDOWS_SPECIFIC
CLBPTime(WORD wDosDate, WORD wDosTime, int nDST = -1)
: CTime(wDosDate, wDosTime, nDST) { }
CLBPTime(const SYSTEMTIME& st, int nDST = -1)
: CTime(st, nDST) { }
CLBPTime(const FILETIME& ft, int nDST = -1)
: CTime(ft, nDST) { }
#endif
CLBPTime(const CLBPString& s);
CLBPTime& operator=(const CLBPString& s);
CLBPString AsString(void) const;
bool SetAsString(const CLBPString& s);
static bool IsValidTime(const CLBPString& s);
};