-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDate.hpp
More file actions
40 lines (35 loc) · 965 Bytes
/
Date.hpp
File metadata and controls
40 lines (35 loc) · 965 Bytes
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
38
39
40
#ifndef DATE_H
#define DATE_H
#include <nan.h>
#include <imebra/date.h>
namespace bindings {
class Date : public Nan::ObjectWrap {
public:
static Nan::Persistent<v8::Function> constructor;
imebra::Date value;
explicit Date(
uint32_t initialYear,
uint32_t initialMonth,
uint32_t initialDay,
uint32_t initialHour,
uint32_t initialMinutes,
uint32_t initialSeconds,
uint32_t initialNanoseconds,
int32_t initialOffsetHours,
int32_t initialOffsetMinutes
);
static void Init(v8::Local<v8::Object>);
private:
static NAN_METHOD(New);
static NAN_METHOD(GetYear);
static NAN_METHOD(GetDay);
static NAN_METHOD(GetMonth);
static NAN_METHOD(GetSeconds);
static NAN_METHOD(GetMinutes);
static NAN_METHOD(GetHour);
static NAN_METHOD(GetNanoseconds);
static NAN_METHOD(GetOffsetHours);
static NAN_METHOD(GetOffsetMinutes);
};
}
#endif // DATE_H