Skip to content

Commit 8628b59

Browse files
authored
Merge pull request #21 from bill18/patch-2
Update 17-Date.cpp
2 parents da651f3 + 67b867f commit 8628b59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/17-Date.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ void onMain() {
77

88
auto time1 = date_t( 2025, 7, 9, false );
99
auto time2 = date_t( 2025, 7, 19, false );
10-
auto time3 = date2 - date1;
10+
auto time3 = time2 - time1;
1111

1212
console::log( "days left:", time3.get_day() );
1313

14-
}
14+
}

0 commit comments

Comments
 (0)