Skip to content

Commit

Permalink
Doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Dec 11, 2024
1 parent 9b134b4 commit 8ace937
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions doc/ref/jmespath/jmespath.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,6 @@ class my_custom_functions : public jmespath::custom_functions<Json>
public:
my_custom_functions()
{
this->register_function("current_date_time", // function name
0, // number of arguments
[](const jsoncons::span<const jmespath::parameter<Json>> params,
jmespath::dynamic_resources<Json>& resources,
std::error_code& ec) -> pointer
{
auto now = std::chrono::system_clock::now();
auto milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(now.time_since_epoch());
return resources.make_json(milliseconds.count());
}
);
this->register_function("current_index", // function name
0, // number of arguments
[](const jsoncons::span<const jmespath::parameter<Json>> params,
Expand Down

0 comments on commit 8ace937

Please sign in to comment.