From f472a2968440d7be3d2bcd09acddedaf92b5ff6e Mon Sep 17 00:00:00 2001 From: majvax Date: Thu, 2 Jan 2025 15:20:25 +0100 Subject: [PATCH] Added missing chrono header --- snippets/cpp/file-handling/find-files-recursive.md | 1 + snippets/cpp/file-handling/find-files.md | 1 + 2 files changed, 2 insertions(+) diff --git a/snippets/cpp/file-handling/find-files-recursive.md b/snippets/cpp/file-handling/find-files-recursive.md index 4bc00ded..1a8d574e 100644 --- a/snippets/cpp/file-handling/find-files-recursive.md +++ b/snippets/cpp/file-handling/find-files-recursive.md @@ -44,6 +44,7 @@ auto files = find_files_recursive("Path", [](const auto& p) { }); // Find all files writed after The New Year +#include 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}} ); diff --git a/snippets/cpp/file-handling/find-files.md b/snippets/cpp/file-handling/find-files.md index 7d26e920..ee2b1ab8 100644 --- a/snippets/cpp/file-handling/find-files.md +++ b/snippets/cpp/file-handling/find-files.md @@ -44,6 +44,7 @@ auto files = find_files("Path", [](const auto& p) { }); // Find all files writed after The New Year +#include 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}} );