hosseinmoein / DataFrame

C++ DataFrame for statistical, Financial, and ML analysis -- in modern C++ using native types and contiguous memory storage
https://hosseinmoein.github.io/DataFrame/
BSD 3-Clause "New" or "Revised" License
2.41k stars 306 forks source link

Is there any way of converting epoch to DateTime? #221

Closed homedry closed 1 year ago

homedry commented 1 year ago

There is set_time which is for changing time value. But It seems there is no constructor taking epochType directly.

Is there any way?

hosseinmoein commented 1 year ago

You can declare a DateTime with default constructor and then use set_time()

DateTime  dt;
dt.set_time(<...>)
homedry commented 1 year ago

Im doing it this way. Thank you for the reply!