Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
homedry opened this issue Jan 3, 2023 · 2 comments
Closed

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

homedry opened this issue Jan 3, 2023 · 2 comments
Labels

Comments

@homedry
Copy link

homedry commented Jan 3, 2023

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
Copy link
Owner

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

DateTime  dt;
dt.set_time(<...>)

@homedry
Copy link
Author

homedry commented Jan 4, 2023

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

@homedry homedry closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants