Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/snippets-c++' into snippets-c++
Browse files Browse the repository at this point in the history
  • Loading branch information
majvax committed Jan 2, 2025
2 parents 31b43b5 + f472a29 commit 29112d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions snippets/cpp/file-handling/find-files-recursive.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ auto files = find_files_recursive("Path", [](const auto& p) {
});

// Find all files writed after The New Year
#include <chrono>
auto jan_1_2025 = std::filesystem::file_time_type::clock::from_sys(
std::chrono::sys_days{std::chrono::year{2025}/std::chrono::month{1}/std::chrono::day{1}}
);
Expand Down
1 change: 1 addition & 0 deletions snippets/cpp/file-handling/find-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ auto files = find_files("Path", [](const auto& p) {
});

// Find all files writed after The New Year
#include <chrono>
auto jan_1_2025 = std::filesystem::file_time_type::clock::from_sys(
std::chrono::sys_days{std::chrono::year{2025}/std::chrono::month{1}/std::chrono::day{1}}
);
Expand Down

0 comments on commit 29112d8

Please sign in to comment.