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

How can i get number of seconds since Epoch #59

Closed
tkralj opened this issue Jan 19, 2021 · 3 comments
Closed

How can i get number of seconds since Epoch #59

tkralj opened this issue Jan 19, 2021 · 3 comments
Assignees
Labels

Comments

@tkralj
Copy link

tkralj commented Jan 19, 2021

Hello , i want to create OTP token using Arduino TOTP Library. I dont know how to get number of seconds since Epoch using your library. Can you help please ?

@SV-Zanshin
Copy link
Collaborator

This would be done in the DateTime class using "unixtime" - that would be the number of seconds since 01.01.1970 00:00:00.

See the library wiki page at DateTimeClass

Does that answer your question?

@tkralj
Copy link
Author

tkralj commented Jan 20, 2021 via email

@SV-Zanshin
Copy link
Collaborator

Excellent, glad to be able to help.

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