Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include "date.h"
  2. #include <iostream>
  3.  
  4. int
  5. main()
  6. {
  7. using namespace date;
  8. using namespace std::chrono_literals;
  9. auto ymd = apr/29/2016;
  10. std::cout << ymd << '\n';
  11. std::cout << day_point{ymd} + 260'000s << '\n';
  12. }
  13.  
  14. Output:
  15.  
  16. 2016-04-29
  17. 2016-05-02 00:13:20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement