mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-01 03:18:18 +08:00
update for _Datetime.cpp
This commit is contained in:
parent
6993e86b18
commit
e59ee9eb77
@ -21,8 +21,13 @@ bool (*le)(const Datetime&, const Datetime&) = operator<=;
|
||||
|
||||
void export_Datetime() {
|
||||
class_<Datetime>("Datetime")
|
||||
.def(init<unsigned long long>())
|
||||
.def(init<const std::string&>())
|
||||
.def(init<unsigned long long>())
|
||||
.def(init<long, long, long>())
|
||||
.def(init<long, long, long, long>())
|
||||
.def(init<long, long, long, long, long>())
|
||||
.def(init<long, long, long, long, long, long>())
|
||||
.def(init<long, long, long, long, long, long, long>())
|
||||
.def(init<long, long, long, long, long, long, long, long>())
|
||||
.def(self_ns::str(self))
|
||||
.add_property("year", &Datetime::year)
|
||||
|
Loading…
Reference in New Issue
Block a user