Created
October 20, 2020 18:46
-
-
Save vladimirgamalyan/f28f1b2a41448223608c68324058b241 to your computer and use it in GitHub Desktop.
days between dates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
using namespace std::chrono; | |
int main() { | |
auto from = sys_days{March/16/2020}; | |
auto to = sys_days{August/7/2020}; | |
std::cout << (to - from).count() << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wandbox